menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class DiagramImage

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

    Constructors

    DiagramImage()

    Declaration
    public DiagramImage()

    Properties

    Align

    Defines the alignment of the image within the node boundary. None - Alignment value will be set as none XMinYMin - smallest X value of the view port and smallest Y value of the view port XMidYMin - midpoint X value of the view port and smallest Y value of the view port XMaxYMin - maximum X value of the view port and smallest Y value of the view port XMinYMid - smallest X value of the view port and midpoint Y value of the view port XMidYMid - midpoint X value of the view port and midpoint Y value of the view port XMaxYMid - maximum X value of the view port and midpoint Y value of the view port XMinYMax - smallest X value of the view port and maximum Y value of the view port XMidYMax - midpoint X value of the view port and maximum Y value of the view port XMaxYMax - maximum X value of the view port and maximum Y value of the view port

    Declaration
    public ImageAlignment Align { get; set; }
    Property Value
    Type Description
    ImageAlignment

    The default value is ImageAlignment.None

    ContentTemplate

    To get or set value for ContentTemplate.

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

    Scale

    Allows to stretch the image as you desired (either to maintain proportion or to stretch) None - Scale value will be set as None for the image Meet - Scale value Meet will be set for the image Slice - Scale value Slice will be set for the image

    Declaration
    public Scale Scale { get; set; }
    Property Value
    Type Description
    Scale

    The default value is Syncfusion.EJ2.Diagrams.Scale.None

    Source

    Defines the source of the image

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

    The default value is ""

    Type

    Defines the type of node shape

    Declaration
    public Shapes Type { get; set; }
    Property Value
    Type Description
    Shapes

    The default value is Shapes.Basic

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