IChartExternLegendItem.Thumbnail

Syntax

Thumbnail(Size: IGxSizeF): IGxImage;

Parameters

Size. Icon size.

Description

The Thumbnail property returns the icon of chart external legend element. The property is read-only.

Example

Executing the example requires a regular report with the Report identifier. The report includes the following objects: a chart and an external legend.

Sub UserProc;
Var
    sizef: IGxSizeF;
    image: IgxImage;
    mb: IMetabase;
    rep: IPrxReport;
    legend: IPrxChartLegend;
    chartlegend: IChartExternLegend;
    items: IChartExternLegendItems;
    item: IChartExternLegendItem;
Begin
    mb := MetabaseClass.Active;
    rep := mb.ItemById("OBJ12399").Open(NullAs IPrxReport;
    legend := (rep.ActiveSheet As IprxTable).TabSheet.Objects.Item(2).Extension As IPrxChartLegend;
    chartlegend := legend As IChartExternLegend;
    items := chartlegend.InternalItems;
    item := Items.Item(0);
    sizef := New GxSizeF.Create(1212);
    image := item.Thumbnail(sizef);
    image.SaveToFile("c:\123.bmp");
End Sub UserProc;

After executing the example the icon with the specified size is saved to the file.

See also:

IChartExternLegendItem