alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Enum FitMode

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

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

    Fields

    Name Description
    Both

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

    Height

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

    Width

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

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