corelibraries-devexpress-dot-xtracharts-dot-serieslabelbase-af73e542.md
Gets the label’s border settings.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public RectangularBorder Border { get; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property Border As RectangularBorder
| Type | Description |
|---|---|
| RectangularBorder |
A RectangularBorder object which specifies the border style.
|
Use the Border property to specify the border’s color, thickness and visibility.
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;
Dim seriesLabel As SeriesLabelBase = chartControl.Series("Series1").Label
seriesLabel.Border.Visibility = DevExpress.Utils.DefaultBoolean.True
seriesLabel.Border.Thickness = 3
seriesLabel.Border.Color = Color.Magenta
See Also