Back to Devexpress

PictureEditOptionsMask.MaskType Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-pictureeditoptionsmask.md

latest3.4 KB
Original Source

PictureEditOptionsMask.MaskType Property

Gets or sets which mask type is applied.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(PictureEditMaskType.None)]
public PictureEditMaskType MaskType { get; set; }
vb
<DefaultValue(PictureEditMaskType.None)>
Public Property MaskType As PictureEditMaskType

Property Value

TypeDefaultDescription
PictureEditMaskTypeNone

A value that specifies the mask type applied to the image.

|

Available values:

NameDescription
Circle

A circle mask.

| | RoundedRect |

A rounded rectangle mask.

Use the PictureEditOptionsMask.RectCornerRadius property to specify the radius of rounded corners.

| | Custom |

Enables the use of a custom mask, assigned to the PictureEditOptionsMask.CustomMask property.

| | None |

No mask is applied.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to MaskType
RepositoryItemPictureEdit

.OptionsMask .MaskType

|

Remarks

The MaskType property allows you to enable the Circle or RoundedRect predefined mask type, or use a custom mask. This property can be set to the following values.

A circle mask.

A rounded rectangle mask.

Use the PictureEditOptionsMask.RectCornerRadius property to specify the radius of rounded corners.

Enables the use of a custom mask, assigned to the PictureEditOptionsMask.CustomMask property.

See Also

CustomMask

PictureEditOptionsMask Class

PictureEditOptionsMask Members

DevExpress.XtraEditors.Controls Namespace