TabPageStretchImage Property

Gets or sets a value indicating whether the image assigned to this TabPage 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 TabPage is computed so:

At first the size of one TabPage button is computed.

The size of one TabPage button is: width = width of TabControl divided by TabsPerPage height = height of TabBarHeight

Once the size of a TabPage button 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 TabPage. 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