Back to Devexpress

WatermarkManager.SetImage(Section, HeaderFooterType, Image) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-watermarkmanager-dot-setimage-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-section-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-headerfootertype-system-dot-drawing-dot-image-x29.md

latest3.0 KB
Original Source

WatermarkManager.SetImage(Section, HeaderFooterType, Image) Method

Adds an image watermark to a header of the specified section.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[Browsable(false)]
void SetImage(
    Section section,
    HeaderFooterType type,
    Image image
)
vb
<Browsable(False)>
Sub SetImage(
    section As Section,
    type As HeaderFooterType,
    image As Image
)

Parameters

NameTypeDescription
sectionSection

The target section.

| | type | HeaderFooterType |

The type of the section’s header in which to insert the watermark.

| | image | Image |

A watermark image.

|

Remarks

If you need to add a watermark to a header of a specific section, ensure that the Section.IsHeaderLinkedToPrevious and Section.IsHeaderLinkedToNext methods return false for this header. Otherwise, the header has the same content as the header of the previous or next section, respectively.

If a section defined by the section parameter does not have a header of the specified type, the SetImage method creates this header. Consider the following when you use this method to create a header and insert a watermark:

See Also

WatermarkManager Interface

WatermarkManager Members

DevExpress.XtraRichEdit.API.Native Namespace