Back to Devexpress

LineSeriesStyle.StrokeThickness Property

maui-devexpress-dot-maui-dot-charts-dot-lineseriesstyle-3093cd7b.md

latest2.0 KB
Original Source

LineSeriesStyle.StrokeThickness Property

Gets or sets the line thickness. This is a bindable property.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public float StrokeThickness { get; set; }

Property Value

TypeDefaultDescription
Single-1

The line thickness, in scale-independent units.

|

Remarks

The resulting stroke thickness can differ on different Android devices. On Android emulators, the stroke thickness is always 1 due to technical limitations.

Example

To change the line series appearance, set the LineSeries.Style property to the LineSeriesStyle object. This object’s properties allow you to configure the appearance of the series line (Stroke, StrokeThickness) and point markers (MarkerSize, MarkerStyle).

xml
<dxc:LineSeries>
    <dxc:LineSeries.Style>
        <dxc:LineSeriesStyle Stroke="#7145a7" StrokeThickness="2" MarkerSize="8">
            <dxc:LineSeriesStyle.MarkerStyle>
                <dxc:MarkerStyle Fill="#7145a7"/>
            </dxc:LineSeriesStyle.MarkerStyle>
        </dxc:LineSeriesStyle>
    </dxc:LineSeries.Style>
</dxc:LineSeries>

See Also

LineSeriesStyle Class

LineSeriesStyle Members

DevExpress.Maui.Charts Namespace