PictureEditOptionsMask.Offset Property

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

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[SupportedMaskOption(SupportedMaskOptionKind.NotNone)]
public Point Offset { get; set; }
<SupportedMaskOption(SupportedMaskOptionKind.NotNone)>
Public Property Offset As Point

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