has_same_template method
has_same_template(other)
Returns true if the current list and the given list are created from the same template.
def has_same_template(self, other: aspose.words.lists.List):
...
Parameter | Type | Description |
---|---|---|
other | List |
Examples
Shows how to define lists with the same ListDefId.
doc = aw.Document(file_name=MY_DIR + 'Different lists.docx')
self.assertTrue(doc.lists[0].has_same_template(doc.lists[1]))
self.assertFalse(doc.lists[1].has_same_template(doc.lists[2]))
See Also
- module aspose.words.lists
- class List