Method SetListStyle
SetListStyle(long, long, string, RichTextSetStyleFlags, int, int)
Sets the list attributes for the given range, passing flags to determine how the attributes are set.
bool SetListStyle(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.