Back to Devexpress

DxChartAnnotationShadow.HorizontalOffset Property

blazor-devexpress-dot-blazor-dot-dxchartannotationshadow-b9fa8cd6.md

latest1.8 KB
Original Source

DxChartAnnotationShadow.HorizontalOffset Property

Specifies the horizontal offset of annotation shadows.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(0)]
[Parameter]
public double HorizontalOffset { get; set; }

Property Value

TypeDefaultDescription
Double0

The offset in pixels.

|

Remarks

The HorizontalOffset property value shifts annotation shadows horizontally from their initial positions. A positive value shifts shadows to the right, a negative value – to the left.

The following code snippet configures shadows for a text annotation:

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">
        <DxChartAnnotationShadow Blur="7"
                                 Color="#5F368D"
                                 HorizontalOffset="10"
                                 VerticalOffset="10"
                                 Opacity="0.9"/>
    </DxChartAnnotation>
</DxChart>

See Also

DxChartAnnotationShadow Class

DxChartAnnotationShadow Members

DevExpress.Blazor Namespace