Enumeration listing the auto-sizing commands available in FormDesigner.
[Visual Basic] Public Enum SizingCommand [C#] public enum SizingCommand [C++] public __value enum SizingCommand [JScript] public enum SizingCommand
Following example demonstrates how to get equal width for all selected components.
[C#]
private void OnEqualWidth_Click(object sender, System.EventArgs e) {
_FormDesigner.AdjustSelectedComponentsSize(SizingCommand.SizeToControlWidth);
}
[Visual Basic]
Private Sub OnEqualWidth_Click(ByVal sender As Object, ByVal e As System.EventArgs)
_FormDesigner.AdjustSelectedComponentsSize SizingCommand.SizeToControlWidth
End Sub
| Member Name | Description |
|---|---|
| SizeToControl | Set height and width of all selected components equal to the height and width of primary selection. |
| SizeToControlWidth | Set width of all selected components equal to the width of primary selection. |
| SizeToControlHeight | Set height of all selected components equal to the height of primary selection. |
| SizeToGrid | Set selected components to align them with the grid. |
Namespace: Viklele.Win.Designer
Assembly: Viklele.Win.FormDesigner (in Viklele.Win.FormDesigner.dll)
Viklele.Win.Designer Namespace | AdjustSelectedComponentsSize