Method PromoteList
PromoteList(int, long, long, string, RichTextSetStyleFlags, int)
Promotes or demotes the paragraphs in the given range.
public virtual bool PromoteList(int promoteBy, long startRange, long endRange, string defName, RichTextSetStyleFlags flags = RichTextSetStyleFlags.WithUndo, int specifiedLevel = -1)
Parameters
promoteBy
intstartRange
longendRange
longdefName
stringflags
RichTextSetStyleFlagsspecifiedLevel
int
Returns
Remarks
A positive promoteBy
produces a smaller indent, and a negative number
produces a larger indent. Pass flags to determine how the attributes are set.