Back to Devexpress

DxChartAnnotationBorder.Width Property

blazor-devexpress-dot-blazor-dot-dxchartannotationborder-b3c7aa04.md

latest1.6 KB
Original Source

DxChartAnnotationBorder.Width Property

Specifies the annotation border width.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(1)]
[Parameter]
public double Width { get; set; }

Property Value

TypeDefaultDescription
Double1

The annotation border width in pixels.

|

Remarks

The following code snippet changes the appearance of annotation borders:

razor
<DxChart Data="@DataSource">
    @* ... *@
    <DxChartLineSeries ValueField="@((ApplePrice i) => i.Close)"
                       ArgumentField="@((ApplePrice i) => i.Date)"
                       Name="AAPL" />
    <DxChartAnnotation Argument="new DateTime(2019, 9, 10)"
                       Series="AAPL"
                       Text="Watch Series 5">
        <DxChartAnnotationBorder Color="#5F368D"
                                 CornerRadius="6"
                                 DashStyle="ChartDashStyle.Dot"
                                 Opacity="0.7"
                                 Width="2" />
    </DxChartAnnotation>
</DxChart>

See Also

DxChartAnnotationBorder Class

DxChartAnnotationBorder Members

DevExpress.Blazor Namespace