hasSameTemplate method
hasSameTemplate(other)
Returns true if the current list and the given list are created from the same template.
hasSameTemplate(other: Aspose.Words.Lists.List)
Parameter | Type | Description |
---|---|---|
other | List |
Examples
Shows how to define lists with the same ListDefId.
let doc = new aw.Document(base.myDir + "Different lists.docx");
expect(doc.lists.at(0).hasSameTemplate(doc.lists.at(1))).toEqual(true);
expect(doc.lists.at(1).hasSameTemplate(doc.lists.at(2))).toEqual(false);
See Also
- module Aspose.Words
- class List