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.Offset Property

Gets or sets the offset of the mask relative to the image.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[SupportedMaskOption(SupportedMaskOptionKind.NotNone)]
public Point Offset { get; set; }

#Property Value

Type Description
Point

The offset of the mask relative to the image.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Offset
RepositoryItemPictureEdit
.OptionsMask .Offset

#Remarks

A mask is aligned within the target image as specified by the PictureEditOptionsMask.MaskLayoutMode property.

The PictureEditOptionsMask.Margin and Offset properties can be used to change the boundaries of the mask. The PictureEditOptionsMask.Margin property allows you to shift the mask’s top, bottom, left and right boundary independently of each other, while the Offset property shifts the mask from its original position horizontally and/or vertically. To shift the mask to the top and bottom, set the Offset.Y setting to a negative and positive value, respectively. Similarly, setting the Offset.X setting to a negative and positive value, shifts the mask to the left and right, respectively.

See Also