GetKeywords
Returns the document keywords.
Syntax
expression.GetKeywords();
expression
- A variable that represents a ApiCore class.
Parameters
This method doesn't have any parameters.
Returns
string
Example
This example demonstrates how to get the keywords of the current document using the ApiCore.
- Code
- Result
const doc = Api.GetDocument();
const core = doc.GetCore();
core.SetKeywords("Example; ApiCore; Document");
const keywords = core.GetKeywords();
let paragraph = doc.GetElement(0);
paragraph.AddText("Keywords: " + keywords);