Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PictureEditOptionsMask.MaskType Property

Gets or sets which mask type is applied.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(PictureEditMaskType.None)]
public PictureEditMaskType MaskType { get; set; }

#Property Value

Type Default Description
PictureEditMaskType None

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

Available values:

Name Description
Circle

A circle mask.

PictureEdit-Mask-Circle.png

RoundedRect

A rounded rectangle mask.

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

PictureEdit-Mask-RoundedRect.png

Custom

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

PictureEdit-Mask-Custom.png

None

No mask is applied.

#Property Paths

You can access this nested property as listed below:

Object Type Path 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.

See Also