IChartLabel.Shadow

Syntax

Shadow: IChartShadow;

Description

The Shadow property returns parameters of the data label shadow.

Comments

This property is relevant only if the DisplayShadow property is set to True.

Example

Top execute this example, create a form with the ChartBox component, the UiChart component named UiChart1 that is a data source for ChartBox. The assembly inspector must specify references to the Chart, Drawing, ExtCtrls, and Forms system assemblies.

Sub SAMPLEFormOnShow(Sender: Object; Args: IEventArgs);
Var
    series: IChartSeries;
    label:IChartLabel;
    shadow:IChartShadow;
Begin   
    series:= UiChart1.Chart.Series;
    series.DisplayLabels:= True;
    label:= series.DefaultLabel;
    label.DisplayShadow:= True;
    shadow:= Label.Shadow;
    shadow.Color:= GxColor.FromName("Gray");
    shadow.Direction := New GxPointF.Create(1.2,1.2);
End Sub SAMPLEFormOnShow;

After executing the example, the chart displays labels of the specified size with shadow.

See also:

IChartLabel