Back to Devexpress

DrawingObject.WatermarkFormat Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-drawingobject-d98d2bfe.md

latest2.9 KB
Original Source

DrawingObject.WatermarkFormat Property

Provides access to watermark settings.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
WatermarkFormat WatermarkFormat { get; }
vb
ReadOnly Property WatermarkFormat As WatermarkFormat

Property Value

TypeDescription
WatermarkFormat

An object that contains watermark settings.

|

Remarks

Watermarks are stored in shape collections (ShapeCollection) of section headers. Call the Section.BeginUpdateHeader method to access a specific section header. Use the header’s SubDocument.Shapes property to return a collection of shapes located in the header. Use the Shape.Type property to find a watermark in the collection. This property returns the Watermark value if a shape is a watermark.

The Shape.WatermarkFormat property allows you to obtain and modify watermark settings, as described in the table below.

MemberDescription
WatermarkFormat.TypeReturns the watermark type.
WatermarkFormat.TextOptionsAllows you to change text watermark settings.
WatermarkFormat.ImageOptionsAllows you to change image watermark settings.
WatermarkFormat.SetTextAllows you to replace watermark text.
WatermarkFormat.SetImageAllows you to replace a watermark image.

See Also

DrawingObject Interface

DrawingObject Members

DevExpress.XtraRichEdit.API.Native Namespace