Enumeration listing component alignment commands available in FormDesigner.
[Visual Basic] Public Enum AlignCommand [C#] public enum AlignCommand [C++] public __value enum AlignCommand [JScript] public enum AlignCommand
Following example demonstrates how selected components can be left aligned.
[C#]
private void OnAlignLeftMenu_Click(object sender, System.EventArgs e) {
_FormDesigner.AdjustSelectedComponentsAlignment(AlignCommand.AlignLeft);
}
[Visual Basic]
Private Sub OnAlignLeftMenu_Click(ByVal sender As Object, ByVal e As System.EventArgs)
_FormDesigner.AdjustSelectedComponentsAlignment AlignCommand.AlignLeft
End Sub
| Member Name | Description |
|---|---|
| AlignToGrid | Aligns selected components to the grid. |
| AlignLeft | Aligns left edge of the selected components to the left edge of primary selection. |
| AlignTop | Aligns top edge of the selected components to the top edge of primary selection. |
| AlignRight | Aligns right edge of the selected components to the right edge of primary selection. |
| AlignBottom | Aligns bottom edge of the selected components to the bottom edge of primary selection. |
| AlignHorizontalCenters | Aligns horizontal center of the selected components to the horizontal center of primary selection. |
| AlignVerticalCenters | Aligns vertical center of the selected components to the vertical center of primary selection. |
| CenterHorizontally | Horizontally centers the smallest bounding rectangle, of selected components, in the container. |
| CenterVertically | Vertically centers the smallest bounding rectangle, of selected components, in the container. |
Namespace: Viklele.Win.Designer
Assembly: Viklele.Win.FormDesigner (in Viklele.Win.FormDesigner.dll)
Viklele.Win.Designer Namespace | AdjustSelectedComponentsAlignment