Class SymbolSizeModel
Specifies the size of the symbol.
Inheritance
System.Object
SymbolSizeModel
Implements
System.IEquatable<SymbolSizeModel>
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class SymbolSizeModel : Object, IEquatable<SymbolSizeModel>
Examples
<div style="width: 200px; float: left">
<SfSymbolPalette Height = "600px" @ref="@SymbolPalette" Palettes="@Palettes">
</SfSymbolPalette>
</div>
<SfDiagram ID = "diagram" @ref="@Diagram" Width="500px" Height="600px">
</SfDiagram>
@code{
SfDiagram Diagram;
SfSymbolPalette SymbolPalette;
public ObservableCollection<Object> Connectors { get; set; }
public ObservableCollection<SymbolPalettePalette> Palettes;
protected override void OnInitialized()
{
Palettes = new ObservableCollection<SymbolPalettePalette>();
//Initializes connector symbols for the symbol palette
Connectors = new ObservableCollection<Object>()
{
new DiagramConnector()
{
Id = "Link1",
// Sets the preview size
PreviewSize = new SymbolSizeModel() { Width = 100, Height = 100 },
// Type of the connector segemnts
Type = Segments.Straight,
// Set the source and target point of the connector
SourcePoint = new ConnectorSourcePoint() { X = 0, Y = 0 },
TargetPoint = new ConnectorTargetPoint() { X = 60, Y = 60 }
},
};
Palettes.Add(new SymbolPalettePalette() { Id = "Connectors", Expanded = true, Symbols = Connectors, Title = "Connectors" });
}
}
Constructors
SymbolSizeModel()
Declaration
public SymbolSizeModel()
Properties
Height
Sets the height of the symbols. By default, it`s set to undefined.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Width
Sets the width of the symbols. By default, it`s set to undefined.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
Equals(SymbolSizeModel)
Indicates whether the SymbolSizeModel object is equal to another object of the same type.
Declaration
public bool Equals(SymbolSizeModel symbolSizeModel)
Parameters
Type | Name | Description |
---|---|---|
SymbolSizeModel | symbolSizeModel | Specifies the size of the symbol. |
Returns
Type | Description |
---|---|
System.Boolean | Retuns the size of the symbol |
Implements
System.IEquatable<>