System.Windows.Forms.ToolStripItem.ImageScaling Property

Gets or sets a value indicating whether an image on a System.Windows.Forms.ToolStripItem is automatically resized to fit in a container.

Syntax

[System.ComponentModel.DefaultValue(System.Windows.Forms.ToolStripItemImageScaling.SizeToFit)]
[System.ComponentModel.Localizable(true)]
public ToolStripItemImageScaling ImageScaling { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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