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.
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:
ToolStrip.ImageScalingSize is the scale of the final image as determined by the combination of the image's ToolStripItem.ImageScaling setting and the container's ToolStrip.AutoSize setting.
To control the image size, use the ToolStrip.ImageScalingSize property.
Member Name | Description |
---|---|
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. |