Back to Devexpress

LinearScaleMarker.ShapeType Property

corelibraries-devexpress-dot-xtragauges-dot-core-dot-model-dot-linearscalemarker.md

latest2.9 KB
Original Source

LinearScaleMarker.ShapeType Property

Gets or sets the object’s painting style.

Namespace : DevExpress.XtraGauges.Core.Model

Assembly : DevExpress.XtraGauges.v25.2.Core.dll

NuGet Package : DevExpress.Gauges.Core

Declaration

csharp
[DefaultValue(MarkerPointerShapeType.Default)]
public MarkerPointerShapeType ShapeType { get; set; }
vb
<DefaultValue(MarkerPointerShapeType.Default)>
Public Property ShapeType As MarkerPointerShapeType

Property Value

TypeDefaultDescription
DevExpress.XtraGauges.Core.Model.MarkerPointerShapeTypeDefault

A MarkerPointerShapeType value that represents the object’s painting style.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShapeType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-wpf-advanced-gauge-customization/CS/MainWindow.xaml.cs#L80

csharp
LinearScaleMarker marker = new LinearScaleMarker("marker");
marker.ShapeType = MarkerPointerShapeType.Diamond;
marker.Shader = new StyleShader() { StyleColor1 = Color.Blue, StyleColor2 = Color.Blue };

reporting-wpf-advanced-gauge-customization/VB/MainWindow.xaml.vb#L67

vb
Dim marker As LinearScaleMarker = New LinearScaleMarker("marker")
marker.ShapeType = MarkerPointerShapeType.Diamond
marker.Shader = New StyleShader() With {.StyleColor1 = Color.Blue, .StyleColor2 = Color.Blue}

See Also

Gauge Styles and Style Manager

LinearScaleMarker Class

LinearScaleMarker Members

DevExpress.XtraGauges.Core.Model Namespace