New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.Documents.Lists

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DocumentList

Inheritance: objectDocumentList

Derived Classes: BulletedListNumberedList

Constructors

C#
public DocumentList(ListStyle style, RadDocument document, int? id, bool shouldCreateNewDocumentListOnInsert)
Parameters:styleListStyledocumentRadDocumentidint?shouldCreateNewDocumentListOnInsertbool
C#
public DocumentList(ListStyle style, RadDocument document, int? id = null)
Parameters:styleListStyledocumentRadDocumentidint?

Properties

C#
public ListStyle ActualStyle { get; }
C#
public RadDocument Document { get; set; }
C#
public Paragraph FirstParagraph { get; }
C#
public int ID { get; }
C#
public int ParagraphCount { get; }

Paragraphs

IEnumerable<Paragraph>

C#
public IEnumerable<Paragraph> Paragraphs { get; }
C#
protected int ParagraphsCount { get; }
C#
public ListStyle Style { get; set; }
C#
public int StyleId { get; }

Methods

C#
public void AddParagraph(Paragraph paragraph, int listLevel)
Parameters:paragraphParagraphlistLevelint
C#
public void AddParagraph(Paragraph paragraph)
Parameters:paragraphParagraph
C#
public void ChangeLeftIndent(double indent)
Parameters:indentdouble
C#
public void DecreaseLeftIndent()
C#
public static DocumentList GetProperListInfo(RadDocument document)
Parameters:documentRadDocumentReturns:

DocumentList

C#
public void IncreaseLeftIndent()
C#
public void RemoveParagraph(Paragraph paragraph, bool removingFromOldList = false)
Parameters:paragraphParagraphremovingFromOldListbool