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