Shadow: IChartShadow;
Shadow: Prognoz.Platform.Interop.Chart.IChartShadow;
The Shadow property returns parameters of the data label shadow.
This property is relevant only if the DisplayShadow property is set to True.
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.
Top execute this example, create a form with the ChartBoxNet component, the UiChartNet component named UiChartNet1 that is a data source for ChartBoxNet. The assembly inspector must specify references to the Chart, Drawing, ExtCtrls, and Forms system assemblies.
Private Sub SAMPLEForm_Shown(sender: System.Object; e: System.EventArgs);
Var
series: IChartSeries;
label:IChartLabel;
shadow:IChartShadow;
color:GxColorClass_2;
pointF:GxPointFClass;
Begin
(UiChartNet1.ChartUi.chart As IChart).ResetDataCache();
series:= UiChartNet1.ChartUi.Chart.Series;
series.DisplayLabels:= True;
label:= series.DefaultLabel;
label.DisplayShadow:= True;
shadow:= Label.Shadow;
color:= New GxColorClass_2();
color.CreateRGB(255,255,0);
shadow.Color:= color;
pointF:= New GxPointFClass();
pointF.Create(1.2,1.2);
shadow.Direction := pointF;
End Sub;
After executing the example, the chart displays labels of the specified size with shadow.
See also: