SeriesLabelBase.Border Property
Gets the label’s border settings.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
[XtraSerializableProperty(XtraSerializationVisibility.Content)]
public RectangularBorder Border { get; }
Property Value
Type | Description |
---|---|
RectangularBorder | A RectangularBorder object which specifies the border style. |
Remarks
Use the Border property to specify the border’s color, thickness and visibility.
Example
This example shows how to configure the series label border options.
Use the following members to configure the border:
Member | Description |
---|---|
SeriesBase.Label | Gets or sets the label settings of series points. |
SeriesLabelBase.Border |
Returns the border settings of series point labels. |
BorderBase.Visibility | Gets or sets the border’s visibility. |
BorderBase.Thickness | Gets or sets the border’s thickness in pixels. |
BorderBase.Color | Gets or sets the border’s color. |
SeriesLabelBase seriesLabel = chartControl.Series["Series1"].Label;
seriesLabel.Border.Visibility = DevExpress.Utils.DefaultBoolean.True;
seriesLabel.Border.Thickness = 3;
seriesLabel.Border.Color = Color.Magenta;
See Also