Method NumberList
NumberList(long, long, string, RichTextSetStyleFlags, int, int)
Numbers the paragraphs in the given range.
bool NumberList(long startRange, long endRange, string defName, RichTextSetStyleFlags flags = RichTextSetStyleFlags.WithUndo, int startFrom = 1, int specifiedLevel = -1)
Parameters
startRange
longendRange
longdefName
stringflags
RichTextSetStyleFlagsstartFrom
intspecifiedLevel
int
Returns
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.