GetType
Returns the type of the watermark in the document.
Syntax
expression.GetType();
expression
- A variable that represents a ApiWatermarkSettings class.
Parameters
This method doesn't have any parameters.
Returns
Example
This example gets a watermark type and pastes it into the document.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let watermarkSettings = doc.GetWatermarkSettings();
let classType = watermarkSettings.GetType();
paragraph = Api.CreateParagraph();
paragraph.AddText("Watermark Type = " + classType);
doc.Push(paragraph);