ToolStripControlHost::ControlAlign Property
.NET Framework (current version)
Gets or sets the alignment of the control on the form.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property ContentAlignment ControlAlign { ContentAlignment get(); void set(ContentAlignment value); }
Property Value
Type: System.Drawing::ContentAlignmentOne of the ContentAlignment values. The default is MiddleCenter.
| Exception | Condition |
|---|---|
| InvalidEnumArgumentException | The ControlAlign property is set to a value that is not one of the ContentAlignment values. |
Use the ControlAlign property to determine or define how hosted controls are to be laid out on the form.
.NET Framework
Available since 2.0
Available since 2.0
Show: