Skip to main content

StrokeStyle.DashOffset Property

Gets or sets the distance from the start of a line to the beginning of a dash pattern.

Namespace: DevExpress.WinUI.Drawing

Assembly: DevExpress.WinUI.Drawing.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(0, Handler = "OnDependencyPropertyChanged")]
public double DashOffset { get; set; }

Property Value

Type Description
Double

The distance from the start of a line to the beginning of a dash pattern.

Remarks

<Charts:CartesianChart.Series>
    <Charts:Series ...>
        <Charts:Series.View>
            <Charts:LineSeriesView ... >
                <Charts:LineSeriesView.StrokeStyle>
                    <drw:StrokeStyle DashArray="2 2" Thickness="5" DashOffset="2"/>
                </Charts:LineSeriesView.StrokeStyle>
            </Charts:LineSeriesView>
        </Charts:Series.View>
        <!-- ... -->
    </Charts:Series>
</Charts:CartesianChart.Series> 

DashOffset - Charts example

This code snippet is based on the following Get Started topic: Lesson 1 - Create a Cartesian Chart.

See Also