List

Overview

List is a class in Aspose.Words FOSS for .NET. Inherits from: IComparable<List>.

List class exposes ListId, ListLevels, Style and methods like CompareTo and HasSameTemplate, allowing developers to inspect, compare, and manipulate document list definitions.

This class provides 6 methods for working with List objects in .NET programs. Available methods include: CompareTo, Equals, GetHashCode, HasSameTemplate. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Document, IsListStyleDefinition, IsListStyleReference, IsMultiLevel, IsRestartAtEachSection, ListId, and 2 more.

Properties

NameTypeAccessDescription
ListIdintReadGets the unique identifier of the list.
DocumentDocumentBaseReadGets the owner document.
IsMultiLevelboolReadReturns true when the list contains 9 levels; false when 1 level.
ListLevelsListLevelCollectionReadGets the collection of list levels for this list.
IsRestartAtEachSectionboolRead/WriteSpecifies whether list should be restarted at each section.
IsListStyleDefinitionboolReadReturns true if this list is a definition of a list style.
IsListStyleReferenceboolReadReturns true if this list is a reference to a list style.
StyleStyleReadGets the list style that this list references or defines.

Methods

SignatureDescription
Equals(list: List)Compares with the specified list.
Equals(obj: object)Determines whether the specified object is equal in value to the current object.
GetHashCode()Calculates hash code for this list object.
CompareTo(obj: object)Compares the specified object to the current object.
CompareTo(other: List)Compares the specified list to the current list.
HasSameTemplate(other: List)Returns true if the current list and the given list are created from the same template.

See Also