Skip to main content
Version: 3.5

ImageLayout

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Specifies the position of the image on the control.

public enum ImageLayout : Enum

Fields

NameDescription
BestFitThe image is scaled to the largest size such that both its width and its height can fit inside the content area.
CenterThe image is centered within the control's client rectangle.
NoneThe image is left-aligned at the top across the control's client rectangle.
OriginalSizeThe image left-aligned at the top and sized using the image original size.
StretchThe image is stretched across the control's client rectangle.
TileThe image is tiled across the control's client rectangle.
ZoomThe image is enlarged within the control's client rectangle.

Used By

NameDescription
Control.BackgroundImageLayoutReturns or sets the background image layout as defined in the ImageLayout enumeration.
DataGridViewCellStyle.BackgroundImageLayoutReturns or sets the background image layout as defined in the ImageLayout enumeration.