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.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
section | Section | The target section. |
type | Header |
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:
Enable the Section.DifferentFirstPage property and pass the First value to the SetImage method to create a separate watermark for the section’s first page.
Enable the Document.DifferentOddAndEvenPages property if you need to add different watermarks to odd and even pages.