Class DiagramSize
Represents the size of a diagram object.
Inheritance
System.Object
DiagramSize
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramSize : Object
Examples
<SfDiagramComponent @ref="diagram">
</SfDiagramComponent>
<SfSymbolPaletteComponent [REDACTED]="@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 the diagram component.
Declaration
public Nullable<double> Height { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | A System.Double representing the height in pixels. The default value is null, indicating no specific height has been set. |
Examples
<SfDiagramComponent @ref="diagram" Width="1000px" Height="1000px" @bind-Nodes="Nodes">
</SfDiagramComponent>
<SfSymbolPaletteComponent Height="600px" Palettes="@Palettes" [REDACTED]="@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 the diagram component.
Declaration
public Nullable<double> Width { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | A System.Double representing the width in pixels. The default value is null, indicating no specific width has been set. |
Examples
<SfDiagramComponent @ref="diagram">
</SfDiagramComponent>
<SfSymbolPaletteComponent [REDACTED]="@SymbolPreview">
</SfSymbolPaletteComponent>
@code
{
SfDiagramComponent diagram;
SymbolPreview = new DiagramSize
{
Height = 80,
Width = 80
};
}