Table of Contents

Method NumberList

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

NumberList(long, long, string, RichTextSetStyleFlags, int, int)

Numbers the paragraphs in the given range.

public virtual bool NumberList(long startRange, long endRange, string defName, RichTextSetStyleFlags flags = RichTextSetStyleFlags.WithUndo, int startFrom = 1, int specifiedLevel = -1)

Parameters

startRange long
endRange long
defName string
flags RichTextSetStyleFlags
startFrom int
specifiedLevel int

Returns

bool

Remarks

flags is a bit list of the following: WithUndo: specifies that this command will be undoable. Renumber: specifies that numbering should start from startFrom, otherwise existing attributes are used. SpecifyLevel: specifies that specifiedLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.