System.Windows.Forms.ToolStripItem.ImageAlign Property

Gets or sets the alignment of the image on a System.Windows.Forms.ToolStripItem.

Syntax

[System.ComponentModel.DefaultValue(System.Drawing.ContentAlignment.MiddleCenter)]
[System.ComponentModel.Localizable(true)]
public System.Drawing.ContentAlignment ImageAlign { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the ToolStripItem.ImageAlign property to get or set image alignment on a System.Windows.Forms.ToolStripItem. Use the ToolStripItem.TextAlign property to get or set text alignment on a System.Windows.Forms.ToolStripItem.

The ToolStripItem.Image, ToolStripItem.ImageAlign, ToolStripItem.ImageIndex, ToolStripItem.ImageKey, and ToolStripItem.ImageScaling properties pertain to various aspects of image handling. Use images in System.Windows.Forms.ToolStrip controls by setting these properties directly or by setting the run-time–only ToolStrip.ImageList property.

Image scaling is determined by the interaction of properties in both System.Windows.Forms.ToolStrip and System.Windows.Forms.ToolStripItem, as follows:

Requirements

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