menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class DiagramIconShapeBuilder

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

    Constructors

    DiagramIconShapeBuilder()

    Declaration
    public DiagramIconShapeBuilder()

    DiagramIconShapeBuilder(DiagramIconShape)

    Declaration
    public DiagramIconShapeBuilder(DiagramIconShape model)
    Parameters
    Type Name Description
    DiagramIconShape model

    Methods

    BorderColor(String)

    Sets the border color of an icon.

    Declaration
    public DiagramIconShapeBuilder BorderColor(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramIconShapeBuilder

    BorderWidth(Double)

    Defines the border width of the icon.

    Declaration
    public DiagramIconShapeBuilder BorderWidth(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramIconShapeBuilder

    Content(String)

    Defines the custom content of the icon

    Declaration
    public DiagramIconShapeBuilder Content(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramIconShapeBuilder

    CornerRadius(Double)

    Defines the corner radius of the icon border

    Declaration
    public DiagramIconShapeBuilder CornerRadius(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramIconShapeBuilder

    Fill(String)

    Sets the fill color of an icon.

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

    Height(Double)

    Defines the height of the icon.

    Declaration
    public DiagramIconShapeBuilder Height(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramIconShapeBuilder

    HorizontalAlignment(HorizontalAlignment)

    Defines how the Icon has to be horizontally aligned. Stretch - Stretches the diagram element throughout its immediate parent Left - Aligns the diagram element at the left of its immediate parent Right - Aligns the diagram element at the right of its immediate parent Center - Aligns the diagram element at the center of its immediate parent Auto - Aligns the diagram element based on the characteristics of its immediate parent

    Declaration
    public DiagramIconShapeBuilder HorizontalAlignment(HorizontalAlignment value)
    Parameters
    Type Name Description
    HorizontalAlignment value
    Returns
    Type
    DiagramIconShapeBuilder

    IconColor(String)

    Sets the Path color of an icon.

    Declaration
    public DiagramIconShapeBuilder IconColor(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramIconShapeBuilder

    Margin(DiagramMargin)

    Defines the space that the icon has to be moved from its actual position

    Declaration
    public DiagramIconShapeBuilder Margin(DiagramMargin value)
    Parameters
    Type Name Description
    DiagramMargin value
    Returns
    Type
    DiagramIconShapeBuilder

    Margin(Action<DiagramMarginBuilder>)

    Declaration
    public DiagramIconShapeBuilder Margin(Action<DiagramMarginBuilder> margin)
    Parameters
    Type Name Description
    System.Action<DiagramMarginBuilder> margin
    Returns
    Type
    DiagramIconShapeBuilder

    Offset(DiagramPoint)

    Defines the offset of the icon.

    Declaration
    public DiagramIconShapeBuilder Offset(DiagramPoint value)
    Parameters
    Type Name Description
    DiagramPoint value
    Returns
    Type
    DiagramIconShapeBuilder

    Offset(Action<DiagramPointBuilder>)

    Declaration
    public DiagramIconShapeBuilder Offset(Action<DiagramPointBuilder> offset)
    Parameters
    Type Name Description
    System.Action<DiagramPointBuilder> offset
    Returns
    Type
    DiagramIconShapeBuilder

    Padding(DiagramMargin)

    Defines the space that the icon has to be moved from the icon border

    Declaration
    public DiagramIconShapeBuilder Padding(DiagramMargin value)
    Parameters
    Type Name Description
    DiagramMargin value
    Returns
    Type
    DiagramIconShapeBuilder

    Padding(Action<DiagramMarginBuilder>)

    Declaration
    public DiagramIconShapeBuilder Padding(Action<DiagramMarginBuilder> padding)
    Parameters
    Type Name Description
    System.Action<DiagramMarginBuilder> padding
    Returns
    Type
    DiagramIconShapeBuilder

    PathData(String)

    Defines the geometry of a path

    Declaration
    public DiagramIconShapeBuilder PathData(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramIconShapeBuilder

    Shape(IconShapes)

    Defines the shape of the icon. None Minus - sets the icon shape as minus Plus - sets the icon shape as Plus ArrowUp - sets the icon shape as ArrowUp ArrowDown - sets the icon shape as ArrowDown Template - sets the icon shape based on the given custom template Path - sets the icon shape based on the given custom Path

    Declaration
    public DiagramIconShapeBuilder Shape(IconShapes value)
    Parameters
    Type Name Description
    IconShapes value
    Returns
    Type
    DiagramIconShapeBuilder

    VerticalAlignment(VerticalAlignment)

    Defines how the Icon has to be Vertically aligned. Stretch - Stretches the diagram element throughout its immediate parent Top - Aligns the diagram element at the top of its immediate parent Bottom - Aligns the diagram element at the bottom of its immediate parent Center - Aligns the diagram element at the center of its immediate parent Auto - Aligns the diagram element based on the characteristics of its immediate parent

    Declaration
    public DiagramIconShapeBuilder VerticalAlignment(VerticalAlignment value)
    Parameters
    Type Name Description
    VerticalAlignment value
    Returns
    Type
    DiagramIconShapeBuilder

    Width(Double)

    Defines the width of the icon.

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