title property

IStructuredDocumentTag.title property

Specifies the friendly name associated with this SDT. Can not be null.

get title(): string

Examples

Shows how to get structured document tag.

let doc = new aw.Document(base.myDir + "Structured document tags by id.docx");

// Get the structured document tag by Id.
let sdt = doc.range.structuredDocumentTags.getById(1160505028);
console.log(sdt.isMultiSection);
console.log(sdt.title);

// Get the structured document tag or ranged tag by Title.
sdt = doc.range.structuredDocumentTags.getByTitle("Alias4");
console.log(sdt.id);

See Also