menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class DiagramBackgroundBuilder

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

    Constructors

    DiagramBackgroundBuilder()

    Declaration
    public DiagramBackgroundBuilder()

    DiagramBackgroundBuilder(DiagramBackground)

    Declaration
    public DiagramBackgroundBuilder(DiagramBackground model)
    Parameters
    Type Name Description
    DiagramBackground model

    Methods

    Align(ImageAlignment)

    Defines how to align the background image over the diagram area. 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 DiagramBackgroundBuilder Align(ImageAlignment value)
    Parameters
    Type Name Description
    ImageAlignment value
    Returns
    Type
    DiagramBackgroundBuilder

    Color(String)

    Defines the background color of diagram

    Declaration
    public DiagramBackgroundBuilder Color(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramBackgroundBuilder

    Scale(Scale)

    Defines how the background image should be scaled/stretched 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 DiagramBackgroundBuilder Scale(Scale value)
    Parameters
    Type Name Description
    Scale value
    Returns
    Type
    DiagramBackgroundBuilder

    Source(String)

    Defines the source of the background image

    Declaration
    public DiagramBackgroundBuilder Source(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    DiagramBackgroundBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved