Class IFitOptions
Represents the diagram content can be fit within the diagram.
Inheritance
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class IFitOptions : Object
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.