Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class IFitOptions - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class IFitOptions

    Represents the diagram content can be fit within the diagram

    Inheritance
    System.Object
    IFitOptions
    Implements
    System.IEquatable<IFitOptions>
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class IFitOptions : Object, IEquatable<IFitOptions>

    Constructors

    IFitOptions()

    Declaration
    public IFitOptions()

    Properties

    CanZoomIn

    Allows the user to enable or disable the zooming, to insert the smaller content into the larger viewport

    Declaration
    public bool CanZoomIn { get; set; }
    Property Value
    Type Description
    System.Boolean

    CustomBounds

    Defines the custom region that can be fit into the viewport.

    Declaration
    public object CustomBounds { get; set; }
    Property Value
    Type Description
    System.Object
    Remarks

    CustomBounds depends on region property of IFitOptions. It will take the bounds of the region as a customBounds

    Margin

    Defines the page to be left between the viewport and the content. By default, it will be 25 from all sides

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

    Mode

    Defines whether the diagram is horizontally or vertically fit into the viewport

    Declaration
    public FitModes Mode { get; set; }
    Property Value
    Type Description
    FitModes
    Remarks

    The mode has the following three options. They are Page, Width, and Height. Users can customize the Mode property by choosing any one of the above options. By default, the Mode will be Page.

    Region

    Defines the region that can be fit into the viewport

    Declaration
    public DiagramRegions Region { get; set; }
    Property Value
    Type Description
    DiagramRegions
    Remarks

    The region has the following three options. They are PageSettings, Content, CustomBounds. By default, the region will be PageSettings

    Methods

    Equals(IFitOptions)

    Indicates whether the IFitOptions object is equal to another object of the same type.

    Declaration
    public bool Equals(IFitOptions iFitOptions)
    Parameters
    Type Name Description
    IFitOptions iFitOptions

    Represents the diagram content can be fit within the diagram

    Returns
    Type Description
    System.Boolean

    Returns how the diagram has to be fit into the viewport

    Implements

    System.IEquatable<>
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved