PictureEditOptionsMask.MaskLayoutMode Property

Gets or sets how a mask is aligned relative to the target image.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v20.1.dll


public PictureEditMaskLayoutMode MaskLayoutMode { get; set; }
Public Property MaskLayoutMode As PictureEditMaskLayoutMode

Property Value

Type Default Description


A value that specifies how a mask is aligned relative to the target image. The Default value is equivalent to ZoomInside.

Property Paths

You can access this nested property as listed below:

Object Type Path to MaskLayoutMode


A mask determines the part of the target image that is visible to end-users. By default, the mask is proportionally stretched to fit the image's bounds. Using the MaskLayoutMode property, you can change how the mask is positioned relative to the image.

For masks of the Circle and RoundedRect types (see PictureEditOptionsMask.MaskType), setting the MaskLayoutMode property to BottomCenter, BottomLeft, BottomRight, MiddleCenter, MiddleLeft, MiddleRight, TopCenter, TopLeft or TopRight has no visual effect unless you modify the PictureEditOptionsMask.Size property.

The PictureEditOptionsMask.Offset and PictureEditOptionsMask.Margin properties allow you to shift the mask relative to the image.

See Also