ToolStretchImage Property

Gets or sets a value indicating whether the image assigned to this Tool should be stretched to fully accommodate the rectangle designated for it.

Definition

Namespace: BeeMobile.ToolBar
Assembly: BeeMobile.ToolBar.NET48 (in BeeMobile.ToolBar.NET48.dll) Version: 4.8.3.5
C#
public bool StretchImage { get; set; }

Property Value

Boolean

Remarks

The rectangle which is designated for the image of Tool is computed so:

At first the size of one Tool is computed.

If the Orientation is horizontal, then the size of one Tool is: width = width of ToolBar divided by ToolsPerPage height = height of ToolBar If the Orientation is vertical, the size of one Tool is: width = width of ToolBar height = height of ToolBar divided by ToolsPerPage

Once the size of a Tool is computed, ImageMargins are taken into consideration. The values of ImageMargins specify how much space should be reserved between the image and the rectangle designated for the Tool. Thus the size of image rectangle is computed. This property specifies whether the image should be stretched into this rectangle or whether it should keep its original size.

See Also