[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.C1RangeStyleCollection

C1RangeStyleCollection Class

An implementation of IStyleOverride that provides an easy way to override styles with a pre calculated collection of C1RangeStyle.

Inheritance
C1RangeStyleCollection
Namespace: C1.WPF.RichTextBox
Assembly: C1.WPF.RichTextBox.4.6.2.dll
Syntax
public class C1RangeStyleCollection : Collection<C1RangeStyle>, IList<C1RangeStyle>, ICollection<C1RangeStyle>, IList, ICollection, IReadOnlyList<C1RangeStyle>, IReadOnlyCollection<C1RangeStyle>, IEnumerable<C1RangeStyle>, IEnumerable, IStyleOverride

Constructors

Name Description
C1RangeStyleCollection()

Methods

Name Description
ClearItems()
GetStyles(C1TextRange)

Returns a collection of C1RangeStyle objects to apply to the text inside the parameter C1TextRange.

InsertItem(int, C1RangeStyle)
RemoveItem(int)
RemoveRange(C1TextRange)

Removes all C1RangeStyle items whose range intersects with the parameter range.

SetItem(int, C1RangeStyle)

Events

Name Description
StylesChanged

Fired when the styles of this IStyleOverride change.