System.Windows.Forms.ToolStripItem.Alignment Property

Gets or sets a value indicating whether the item aligns towards the beginning or end of the System.Windows.Forms.ToolStrip.

Syntax

[System.ComponentModel.DefaultValue(System.Windows.Forms.ToolStripItemAlignment.Left)]
public ToolStripItemAlignment Alignment { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

In a stack overflow layout, use the ToolStripItem.Alignment property along with the ToolStripItem.RightToLeft property to control the end to which items are aligned in a System.Windows.Forms.ToolStrip, or to determine the end to which they are already aligned.

If the ToolStripItem.RightToLeft property is RightToLeft.No, items marked as ToolStripItemAlignment.Left are aligned to the left side of the System.Windows.Forms.ToolStrip and items marked ToolStripItemAlignment.Right are aligned to the right.

If the ToolStripItem.RightToLeft property is RightToLeft.Yes, items marked as ToolStripItemAlignment.Left are aligned to the right side of the System.Windows.Forms.ToolStrip and items marked ToolStripItemAlignment.Right are aligned to the left.

Note:

In flow and table layouts, the ToolStripItem.Alignment property is ignored. In flow or table layout, use the ToolStripItem.Dock or ToolStripItem.Anchor property to align the items within the row or table cell.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0