Class LinearShapePointer
Create the pointer to indicate the value with built-in shapes. To highlight values, set the shape pointer type to a built-in shape, such as a circle, triangle, inverted triangle or diamond.
Inherited Members
Namespace: Syncfusion.Maui.Gauges
Assembly: Syncfusion.Maui.Gauges.dll
Syntax
public class LinearShapePointer : LinearMarkerPointer, IThemeElement
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.MarkerPointers>
<gauge:LinearShapePointer ShapeType="Circle"
Value="70"/>
</gauge:SfLinearGauge.MarkerPointers>
</gauge:SfLinearGauge>
Constructors
LinearShapePointer()
Initializes a new instance of the LinearShapePointer class.
Declaration
public LinearShapePointer()
Fields
FillProperty
Identifies the Fill bindable property.
Declaration
public static readonly BindableProperty FillProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Fill bindable property. |
HasShadowProperty
Identifies the HasShadow bindable property.
Declaration
public static readonly BindableProperty HasShadowProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for HasShadow bindable property. |
ShapeHeightProperty
Identifies the ShapeHeight bindable property.
Declaration
public static readonly BindableProperty ShapeHeightProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for ShapeHeight bindable property. |
ShapeTypeProperty
Identifies the ShapeType bindable property.
Declaration
public static readonly BindableProperty ShapeTypeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for ShapeType bindable property. |
ShapeWidthProperty
Identifies the ShapeWidth bindable property.
Declaration
public static readonly BindableProperty ShapeWidthProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for ShapeWidth bindable property. |
StrokeProperty
Identifies the Stroke bindable property.
Declaration
public static readonly BindableProperty StrokeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Stroke bindable property. |
StrokeThicknessProperty
Identifies the StrokeThickness bindable property.
Declaration
public static readonly BindableProperty StrokeThicknessProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for StrokeThickness bindable property. |
Properties
Fill
Gets or sets a value that indicates the brush used to paint the shape pointer interior.
Declaration
public Brush Fill { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | A |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.MarkerPointers>
<gauge:LinearShapePointer Fill="Red"
Value="70"/>
</gauge:SfLinearGauge.MarkerPointers>
</gauge:SfLinearGauge>
HasShadow
Gets or sets a flag indicating if the shape pointer has a shadow displayed.
Declaration
public bool HasShadow { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | It defines the shadow visibility of shape pointer. The default value is |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.MarkerPointers>
<gauge:LinearShapePointer ShapeType="Circle" HasShadow="true"
Value="70"/>
</gauge:SfLinearGauge.MarkerPointers>
</gauge:SfLinearGauge>
ShapeHeight
Gets or sets a value that specifies the shape height.
Declaration
public double ShapeHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the LinearShapePointer, in pixels. The default value is |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.MarkerPointers>
<gauge:LinearShapePointer ShapeType="Circle" ShapeHeight="20" ShapeWidth="20"
Value="70"/>
</gauge:SfLinearGauge.MarkerPointers>
</gauge:SfLinearGauge>
ShapeType
Gets or sets a value that specifies the default shape type of the pointer.
Declaration
public ShapeType ShapeType { get; set; }
Property Value
Type | Description |
---|---|
ShapeType | One of the enumeration values that specifies the shape type of shape pointer in the linear gauge. The default is InvertedTriangle. |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.MarkerPointers>
<gauge:LinearShapePointer ShapeType="Circle"
Value="70"/>
</gauge:SfLinearGauge.MarkerPointers>
</gauge:SfLinearGauge>
ShapeWidth
Gets or sets a value that specifies the shape width.
Declaration
public double ShapeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the LinearShapePointer, in pixels. The default value is |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.MarkerPointers>
<gauge:LinearShapePointer ShapeType="Circle" ShapeHeight="20" ShapeWidth="20"
Value="70"/>
</gauge:SfLinearGauge.MarkerPointers>
</gauge:SfLinearGauge>
Stroke
Gets or sets the Brush
that specifies how the shape outline to be painted.
Declaration
public Color Stroke { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Graphics.Color | A |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.MarkerPointers>
<gauge:LinearShapePointer Stroke="Red" StrokeThickness="3"
Value="70"/>
</gauge:SfLinearGauge.MarkerPointers>
</gauge:SfLinearGauge>
StrokeThickness
Gets or sets the value that specifies the width of the shape stroke outline.
Declaration
public double StrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It specifies the width of the LinearShapePointer stroke outline. The default value is |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.MarkerPointers>
<gauge:LinearShapePointer Stroke="Red" StrokeThickness="3"
Value="70"/>
</gauge:SfLinearGauge.MarkerPointers>
</gauge:SfLinearGauge>