DocumentList
Represents a document list for formatting and managing structured lists within a Telerik application.
Definition
Namespace:Telerik.Windows.Documents.Lists
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class DocumentList
Inheritance: objectDocumentList
Derived Classes:
Constructors
public DocumentList(ListStyle style, RadDocument document, int? id, bool shouldCreateNewDocumentListOnInsert)
public DocumentList(ListStyle style, RadDocument document, int? id = null)
Properties
Gets the actual style applied to the document list, including any overrides or default styles.
public ListStyle ActualStyle { get; }
Represents a document list within the Telerik UI for WPF. This class provides functionality for managing and manipulating document lists.
public RadDocument Document { get; set; }
Gets the first paragraph of the document list.
public Paragraph FirstParagraph { get; }
Gets the unique identifier of the document list.
public int ID { get; }
The identifier associated with the document list.
Gets the number of paragraphs in the document list.
public int ParagraphCount { get; }
The total count of paragraphs in the document list.
Gets the collection of paragraphs in the document list.
public IEnumerable<Paragraph> Paragraphs { get; }
protected int ParagraphsCount { get; }
Gets or sets the style of the document list.
public ListStyle Style { get; set; }
The style of the document list, which defines the visual appearance and formatting of the list elements.
Methods
Adds a paragraph to the document list.
public void AddParagraph(Paragraph paragraph)
The paragraph to be added to the document list.
Changes the left indentation of the document list.
public void ChangeLeftIndent(double indent)
The amount of indentation to apply, in points.
Decreases the left indentation of the document list, moving it closer to the left margin.
public void DecreaseLeftIndent()
Retrieves the proper list information for the specified RadDocument.
public static DocumentList GetProperListInfo(RadDocument document)
The RadDocument for which to retrieve the list information.
Returns:Returns an object of type ListInfo containing the relevant information about the list in the document.
Increases the left indentation of the document list by a specified amount.
public void IncreaseLeftIndent()
Removes a specified paragraph from the document list.