menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramShapeStyleBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramShapeStyleBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    DiagramShapeStyleBuilder
    Namespace: Syncfusion.EJ2.Diagrams
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DiagramShapeStyleBuilder : ControlBuilder

    Constructors

    DiagramShapeStyleBuilder()

    Declaration
    public DiagramShapeStyleBuilder()

    DiagramShapeStyleBuilder(DiagramShapeStyle)

    Declaration
    public DiagramShapeStyleBuilder(DiagramShapeStyle model)
    Parameters
    Type Name Description
    DiagramShapeStyle model

    Methods

    Fill(String)

    Sets the fill color of a shape/path

    Declaration
    public DiagramShapeStyleBuilder Fill(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramShapeStyleBuilder

    Gradient(Action<DiagramGradientBuilder>)

    Declaration
    public DiagramShapeStyleBuilder Gradient(Action<DiagramGradientBuilder> gradient)
    Parameters
    Type Name Description
    System.Action<DiagramGradientBuilder> gradient
    Returns
    Type
    DiagramShapeStyleBuilder

    Gradient(Object)

    Defines the gradient of a shape/path

    Declaration
    public DiagramShapeStyleBuilder Gradient(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    DiagramShapeStyleBuilder

    Opacity(Double)

    Sets the opacity of a shape/path

    Declaration
    public DiagramShapeStyleBuilder Opacity(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramShapeStyleBuilder

    StrokeColor(String)

    Sets the stroke color of a shape/path

    Declaration
    public DiagramShapeStyleBuilder StrokeColor(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramShapeStyleBuilder

    StrokeDashArray(String)

    Defines the pattern of dashes and spaces to stroke the path/shape

    Declaration
    public DiagramShapeStyleBuilder StrokeDashArray(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramShapeStyleBuilder

    StrokeWidth(Double)

    Defines the stroke width of the path/shape

    Declaration
    public DiagramShapeStyleBuilder StrokeWidth(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramShapeStyleBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved