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. |