Class DiagramSize
Describes the size of an object.
Inheritance
System.Object
DiagramSize
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramSize : Object
Examples
<SfDiagramComponent @ref = "diagram" >
</SfDiagramComponent>
<SfSymbolPaletteComponent SymbolDragPreviewSize="@SymbolPreview">
</SfSymbolPaletteComponent >
@code
{
SfDiagramComponent diagram;
SymbolPreview = new DiagramSize
{
Height = 80, Width = 80
};
}
Constructors
DiagramSize()
Declaration
public DiagramSize()
Properties
Height
Gets or sets the height of an object.
Declaration
public Nullable<double> Height { get; set; }
Property Value
Type |
---|
System.Nullable<System.Double> |
Examples
<SfDiagramComponent @ref = "diagram" Width="1000px" Height="1000px" @bind-Nodes="Nodes">
</SfDiagramComponent>
<SfSymbolPaletteComponent Height="600px" Palettes="@Palettes" SymbolDragPreviewSize="@SymbolPreview" SymbolHeight="@symbolSizeHeight" GetSymbolInfo="GetSymbolInfo" SymbolWidth="@symbolSizeWidth" SymbolMargin="@SymbolMargin">
</SfSymbolPaletteComponent >
@code
{
SfDiagramComponent diagram;
SymbolPreview = new DiagramSize
{
Height = 80, Width = 80
};
}
Width
Gets or sets the width of an object.
Declaration
public Nullable<double> Width { get; set; }
Property Value
Type |
---|
System.Nullable<System.Double> |
Examples
<SfDiagramComponent @ref = "diagram" >
</SfDiagramComponent>
<SfSymbolPaletteComponent SymbolDragPreviewSize="@SymbolPreview" >
</SfSymbolPaletteComponent >
@code
{
SfDiagramComponent diagram;
SymbolPreview = new DiagramSize
{
Height = 80, Width = 80
};
}