Click or drag to resize

XlsChartSerieDataFormat MarkerFill Property

Get fill object of the marker.
Examples

The following code illustrates how to fill a marker .

<para>var markerFill = chart.Series[0].Format.MarkerFill;</para><para>//fill by defined Texture</para><para>markerFill.Texture = GradientTextureType.GreenMarble;</para><para></para><para>//fill by defined Pattern</para><para>markerFill.Pattern = GradientPatternType.PatLargeCheckerBoard;</para><para>//Pattern need set fore/background color</para><para>markerFill.ForeColor = Color.Blue;</para><para>markerFill.BackColor = Color.Red;</para><para>//fill by a picture</para><para>markerFill.CustomPicture("type1.png")</para><para>//set transparency: value from 0.0 (Clear) through 1.0(Opaque)</para><para>markerFill.Transparency = 0.5;</para>

Namespace: Spire.Xls.Core.Spreadsheet.Charts
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public IShapeFill MarkerFill { get; }

Property Value

Type: IShapeFill
See Also