Editar

Compartilhar via


ToolStripControlHost.ControlAlign Property

Definition

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