System.Windows.Forms.ToolStrip.ImageScalingSize Property

Gets or sets the size, in pixels, of an image used on a System.Windows.Forms.ToolStrip.

Syntax

[System.ComponentModel.DefaultValue("{Width=16, Height=16}")]
public System.Drawing.Size ImageScalingSize { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the System.Windows.Forms.ToolStripItemImageScaling property to control the default size of an image. Use ToolStripItemImageScaling.SizeToFit to make the size of the image on a System.Windows.Forms.ToolStripItem to automatically adjust to fit on a System.Windows.Forms.ToolStrip while retaining the original image proportions.

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