alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class ShapeStyle

    Defines the fill and stroke appearance shared by Node and Connector.

    Inheritance
    System.Object
    DiagramElement
    ShapeStyle
    TextStyle
    Inherited Members
    DiagramElement.OnPropertyChanged(String)
    Namespace: Syncfusion.Maui.Diagram
    Assembly: Syncfusion.Maui.Diagram.dll
    Syntax
    public class ShapeStyle : DiagramElement

    Constructors

    ShapeStyle()

    Declaration
    public ShapeStyle()

    Fields

    FillProperty

    Identifies the Fill bindable property.

    Declaration
    public static readonly BindableProperty FillProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    OpacityProperty

    Identifies the Opacity bindable property.

    Declaration
    public static readonly BindableProperty OpacityProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    StrokeColorProperty

    Identifies the StrokeColor bindable property.

    Declaration
    public static readonly BindableProperty StrokeColorProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    StrokeDashArrayProperty

    Identifies the StrokeDashArray bindable property.

    Declaration
    public static readonly BindableProperty StrokeDashArrayProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    StrokeWidthProperty

    Identifies the StrokeWidth bindable property.

    Declaration
    public static readonly BindableProperty StrokeWidthProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    Fill

    Gets or sets the fill color.

    Declaration
    public Color Fill { get; set; }
    Property Value
    Type
    Microsoft.Maui.Graphics.Color

    Opacity

    Gets or sets the overall opacity, from 0 (transparent) to 1 (opaque).

    Declaration
    public double Opacity { get; set; }
    Property Value
    Type
    System.Double

    StrokeColor

    Gets or sets the stroke (outline/line) color.

    Declaration
    public Color StrokeColor { get; set; }
    Property Value
    Type
    Microsoft.Maui.Graphics.Color

    StrokeDashArray

    Gets or sets a comma-separated dash pattern (for example, "2,2") applied to the stroke. A null or empty value renders a solid line.

    Declaration
    public string StrokeDashArray { get; set; }
    Property Value
    Type
    System.String

    StrokeWidth

    Gets or sets the stroke thickness, in diagram units.

    Declaration
    public double StrokeWidth { get; set; }
    Property Value
    Type
    System.Double
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved