menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FitMode - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FitMode

    Indicates where an element should be displayed on the viewport relative to the Height and Width of the Diagram elementss in the page

    Inheritance
    System.Object
    FitMode
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class FitMode : Enum
    Examples
    <SfDiagramComponent Width="1000px" Height="1000px">
    </SfDiagramComponent>
    @code
    {
       SfDiagramComponent Diagram;
       FitOptions Options = new FitOptions(){
       Mode = FitMode.Both,
       }
    
       Diagram.FitToPage(Options);
    }

    Fields

    Both

    Fits the group of elements within the ViewPort based on both Height aned Width.

    Declaration
    public const FitMode Both
    Field Value
    Type
    FitMode

    Height

    Fits the group of elements within the ViewPort based on Height.

    Declaration
    public const FitMode Height
    Field Value
    Type
    FitMode

    Width

    Fits the group of elements within the ViewPort based on Height.

    Declaration
    public const FitMode Width
    Field Value
    Type
    FitMode
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved