Class SymbolMargin
Specifies the extra space around the outer boundaries of the symbol.
Inheritance
Namespace: Syncfusion.Blazor.Diagram.SymbolPalette
Assembly: Syncfusion.Blazor.dll
Syntax
public class SymbolMargin : Object, IPaletteObject, IDiagramObject, ICloneable
Examples
<SfSymbolPaletteComponent SymbolMargin="@SymbolMargin" SymbolHeight="50">
</SfSymbolPaletteComponent >
@code{
SymbolMargin SymbolMargin = new SymbolMargin { Left = 10, Right = 10, Top = 10, Bottom = 10 };
}
Constructors
SymbolMargin()
Declaration
public SymbolMargin()
Properties
Bottom
Gets or sets the extra space at the bottom of the symbol.
Declaration
public double Bottom { get; set; }
Property Value
Type |
---|
System.Double |
Examples
<SfSymbolPaletteComponent SymbolMargin="@SymbolMargin" SymbolHeight="50">
</SfSymbolPaletteComponent >
@code{
SymbolMargin SymbolMargin = new SymbolMargin { Left = 10, Right = 10, Top = 10, Bottom = 10 };
}
Left
Gets or sets the extra space at the left of the symbol.
Declaration
public double Left { get; set; }
Property Value
Type |
---|
System.Double |
Examples
<SfSymbolPaletteComponent SymbolMargin="@SymbolMargin" SymbolHeight="50">
</SfSymbolPaletteComponent >
@code{
SymbolMargin SymbolMargin = new SymbolMargin { Left = 10, Right = 10, Top = 10, Bottom = 10 };
}
Right
Gets or sets the extra space at the right of the symbol.
Declaration
public double Right { get; set; }
Property Value
Type |
---|
System.Double |
Examples
<SfSymbolPaletteComponent SymbolMargin="@SymbolMargin" SymbolHeight="50">
</SfSymbolPaletteComponent >
@code{
SymbolMargin SymbolMargin = new SymbolMargin { Left = 10, Right = 10, Top = 10, Bottom = 10 };
}
Top
Gets or sets the extra space at the top of the symbol.
Declaration
public double Top { get; set; }
Property Value
Type |
---|
System.Double |
Examples
<SfSymbolPaletteComponent SymbolMargin="@SymbolMargin" SymbolHeight="50">
</SfSymbolPaletteComponent >
@code{
SymbolMargin SymbolMargin = new SymbolMargin { Left = 10, Right = 10, Top = 10, Bottom = 10 };
}
Methods
Clone()
Creates a new SymbolMargin that is a copy of the current SymbolMargin.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | SymbolMargin |
OnPropertyChanged(String, Object, Object, IDiagramObject)
Invoked when the effective value of any property on this Symbol margin has been updated.
Declaration
public void OnPropertyChanged(string propertyName, object newVal, object oldVal, IDiagramObject container)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | string that contains the propertyname. |
System.Object | newVal | An object that contain newvalue, which means new value of property |
System.Object | oldVal | An object that contain oldvalue, which means old value of property |
IDiagramObject | container | An IDiagramObject that contain IDiagram object |
OnPropertyChanged(String, Object, Object, IPaletteObject)
Invoked when the effective value of any property on this Symbol margin has been updated.
Declaration
public void OnPropertyChanged(string propertyName, object newVal, object oldVal, IPaletteObject container)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | string that contains the propertyname. |
System.Object | newVal | An object that contain newvalue, which means new value of property |
System.Object | oldVal | An object that contain oldvalue, which means old value of property |
IPaletteObject | container | An IPaletteObject that contain IPaletteObject |