Class HorizontalAlignment
Represents the alignment of the diagram elements based on its immediate parent.
Inheritance
System.Object
HorizontalAlignment
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class HorizontalAlignment : Enum
Examples
Node Node = new Node()
{
Ports = new DiagramObjectCollection<PointPort>()
{
new PointPort()
{
HorizontalAlignment = HorizontalAlignment.Left
}
},
};
Fields
Auto
Aligns the diagram element based on its immediate parent’s horizontal alignment property.
Declaration
public const HorizontalAlignment Auto
Field Value
Type |
---|
HorizontalAlignment |
Center
Align the diagram element horizontally to the center of its immediate parent.
Declaration
public const HorizontalAlignment Center
Field Value
Type |
---|
HorizontalAlignment |
Left
Align the diagram element horizontally to the left side of its immediate parent.
Declaration
public const HorizontalAlignment Left
Field Value
Type |
---|
HorizontalAlignment |
Right
Align the diagram element horizontally to the right side of its immediate parent.
Declaration
public const HorizontalAlignment Right
Field Value
Type |
---|
HorizontalAlignment |
Stretch
Stretch the diagram element horizontally to its immediate parent.
Declaration
public const HorizontalAlignment Stretch
Field Value
Type |
---|
HorizontalAlignment |