System.Windows.Forms.ToolStripItemImageScaling Enumeration

Specifies whether the size of the image on a System.Windows.Forms.ToolStripItem is automatically adjusted to fit on a System.Windows.Forms.ToolStrip while retaining the original image proportions.

Syntax

public enum ToolStripItemImageScaling

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:

To control the image size, use the ToolStrip.ImageScalingSize property.

Members

Member NameDescription
None

Specifies that the size of the image on a System.Windows.Forms.ToolStripItem is not automatically adjusted to fit on a System.Windows.Forms.ToolStrip.

SizeToFit

Specifies that the size of the image on a System.Windows.Forms.ToolStripItem is automatically adjusted to fit on a System.Windows.Forms.ToolStrip.

Requirements

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