Class
ListManager

Class responsible for the lists in RadDocument.

Definition

Namespace:Telerik.Windows.Documents.Lists

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ListManager

Inheritance: objectListManager

Constructors

ListManager(RadDocument)

Initializes a new instance of the ListManager class.

Declaration

cs-api-definition
public ListManager(RadDocument document)

Parameters

document

RadDocument

The document the manager will be responsible for.

Methods

GetAllDocumentLists()

Gets all document lists.

Declaration

cs-api-definition
public IEnumerable<DocumentList> GetAllDocumentLists()

Returns

IEnumerable<DocumentList>

A collection of DocumentList objects.

GetAllListStyles()

Gets all list styles.

Declaration

cs-api-definition
public IEnumerable<ListStyle> GetAllListStyles()

Returns

IEnumerable<ListStyle>

A collection of ListStyle objects.

GetDocumentListById(int)

Gets a document list by identifier.

Declaration

cs-api-definition
public DocumentList GetDocumentListById(int id)

Parameters

id

int

The identifier.

Returns

DocumentList

The DocumentList under the specified identifier. If such is not found, the method returns null.

GetListStyleById(int)

Gets the list style by identifier.

Declaration

cs-api-definition
public ListStyle GetListStyleById(int id)

Parameters

id

int

The identifier.

Returns

ListStyle

The ListStyle under the specified identifier. If such is not found, the method returns null.

RegisterListStyleIfNecessary(ListStyle)

Registers a ListStyle if such is still not registered.

Declaration

cs-api-definition
public void RegisterListStyleIfNecessary(ListStyle listStyle)

Parameters

listStyle

ListStyle

The list style.

UnRegisterListStyle(ListStyle)

Removes a ListStyle from the registered styles.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Un")]
public void UnRegisterListStyle(ListStyle listStyle)

Parameters

listStyle

ListStyle

The list style.