ToolStripControlHost.ControlAlign Property


Gets or sets the alignment of the control on the form.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public ContentAlignment ControlAlign { get; set; }

Property Value

Type: System.Drawing.ContentAlignment

One of the ContentAlignment values. The default is MiddleCenter.

Exception Condition

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
Return to top