Back to Devexpress

DxChartAnnotationBorder Class

blazor-devexpress-dot-blazor-5cd17caf.md

latest3.4 KB
Original Source

DxChartAnnotationBorder Class

Defines annotation border settings.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public class DxChartAnnotationBorder :
    DxSettingsComponent<ChartAnnotationBorderModel>

Remarks

The DxChartAnnotationBorder component allows you to configure borders for chart annotations.

Use the Visible property to control the visibility of annotation borders.

To customize border appearance, specify any of the following properties:

ColorSpecifies the color for annotation borders.CornerRadiusSpecifies the corner radius for annotation borders.DashStyleSpecifies the line style for annotation borders.OpacitySpecifies annotation border transparency.WidthSpecifies the annotation border width.

Note

The CornerRadius property values affect an annotation’s appearance even if the Visible property is set to false.

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>

Refer to the following section for additional information about annotations: Annotations in Blazor Charts.

Implements

IComponent

IHandleEvent

IHandleAfterRender

IDisposable

Inheritance

Object ComponentBase DxSettingsComponent<DevExpress.Blazor.Internal.ChartAnnotationBorderModel> DxChartAnnotationBorder

See Also

DxChartAnnotationBorder Members

DevExpress.Blazor Namespace