ToolStripControlHost.ControlAlign Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the alignment of the control on the form.
public:
property System::Drawing::ContentAlignment ControlAlign { System::Drawing::ContentAlignment get(); void set(System::Drawing::ContentAlignment value); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.ContentAlignment ControlAlign { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.ControlAlign : System.Drawing.ContentAlignment with get, set
Public Property ControlAlign As ContentAlignment
Property Value
One of the ContentAlignment values. The default is MiddleCenter.
- Attributes
Exceptions
The ControlAlign property is set to a value that is not one of the ContentAlignment values.
Remarks
Use the ControlAlign property to determine or define how hosted controls are to be laid out on the form.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.