alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ShapeStyle

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

    Inheritance
    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
    BindableProperty

    OpacityProperty

    Identifies the Opacity bindable property.

    Declaration
    public static readonly BindableProperty OpacityProperty
    Field Value
    Type
    BindableProperty

    StrokeColorProperty

    Identifies the StrokeColor bindable property.

    Declaration
    public static readonly BindableProperty StrokeColorProperty
    Field Value
    Type
    BindableProperty

    StrokeDashArrayProperty

    Identifies the StrokeDashArray bindable property.

    Declaration
    public static readonly BindableProperty StrokeDashArrayProperty
    Field Value
    Type
    BindableProperty

    StrokeWidthProperty

    Identifies the StrokeWidth bindable property.

    Declaration
    public static readonly BindableProperty StrokeWidthProperty
    Field Value
    Type
    BindableProperty

    Properties

    Fill

    Gets or sets the fill color.

    Declaration
    public Color Fill { get; set; }
    Property Value
    Type
    Color

    Opacity

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

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

    StrokeColor

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

    Declaration
    public Color StrokeColor { get; set; }
    Property Value
    Type
    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
    string

    StrokeWidth

    Gets or sets the stroke thickness, in diagram units.

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