Back to Devexpress

SeriesLabelBase.Border Property

corelibraries-devexpress-dot-xtracharts-dot-serieslabelbase-af73e542.md

latest2.7 KB
Original Source

SeriesLabelBase.Border Property

Gets the label’s border settings.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public RectangularBorder Border { get; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property Border As RectangularBorder

Property Value

TypeDescription
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:

MemberDescription
SeriesBase.LabelGets or sets the label settings of series points.
SeriesLabelBase.BorderReturns the border settings of series point labels.
BorderBase.VisibilityGets or sets the border’s visibility.
BorderBase.ThicknessGets or sets the border’s thickness in pixels.
BorderBase.ColorGets or sets the border’s color.
csharp
SeriesLabelBase seriesLabel = chartControl.Series["Series1"].Label;

seriesLabel.Border.Visibility = DevExpress.Utils.DefaultBoolean.True;
seriesLabel.Border.Thickness = 3;
seriesLabel.Border.Color = Color.Magenta;
vb
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

SeriesLabelBase Class

SeriesLabelBase Members

DevExpress.XtraCharts Namespace