Table of Contents

Method SetListStyle

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

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 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.