menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class DiagramIconShape

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    DiagramIconShape
    NodeCollapseIconNodes
    Namespace: Syncfusion.EJ2.Diagrams
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DiagramIconShape : EJTagHelper

    Constructors

    DiagramIconShape()

    Declaration
    public DiagramIconShape()

    Properties

    BorderColor

    Sets the border color of an icon.

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

    The default value is ""

    BorderWidth

    Defines the border width of the icon.

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

    The default value is 1

    Content

    Defines the custom content of the icon

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

    The default value is ""

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type
    Syncfusion.EJ2.MvcTemplate<System.Object>

    CornerRadius

    Defines the corner radius of the icon border

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

    The default value is 0

    Fill

    Sets the fill color of an icon.

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

    The default value is "white"

    Height

    Defines the height of the icon.

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

    The default value is 10

    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 HorizontalAlignment HorizontalAlignment { get; set; }
    Property Value
    Type Description
    HorizontalAlignment

    The default value is HorizontalAlignment.Auto

    IconColor

    Sets the Path color of an icon.

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

    The default value is ""

    Margin

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

    Declaration
    public DiagramMargin Margin { get; set; }
    Property Value
    Type Description
    DiagramMargin

    The default value is null

    Offset

    Defines the offset of the icon.

    Declaration
    public DiagramPoint Offset { get; set; }
    Property Value
    Type Description
    DiagramPoint

    The default value is null

    Padding

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

    Declaration
    public DiagramMargin Padding { get; set; }
    Property Value
    Type Description
    DiagramMargin

    The default value is null

    PathData

    Defines the geometry of a path

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

    The default value is ""

    Shape

    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 IconShapes Shape { get; set; }
    Property Value
    Type Description
    IconShapes

    The default value is IconShapes.None

    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 VerticalAlignment VerticalAlignment { get; set; }
    Property Value
    Type Description
    VerticalAlignment

    The default value is VerticalAlignment.Auto

    Width

    Defines the width of the icon.

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

    The default value is 10

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved