ComponentOne RichTextBox for WPF and Silverlight
GetStyles Method (IStyleOverride)

C1.WPF.RichTextBox Namespace > IStyleOverride Interface : GetStyles Method
Returns a collection of C1RangeStyle objects to apply to the text inside the parameter C1.WPF.RichTextBox.Documents.C1TextRange.
Syntax
'Declaration
 
Function GetStyles( _
   ByVal range As C1TextRange _
) As System.Collections.Generic.IEnumerable(Of C1RangeStyle)
System.Collections.Generic.IEnumerable<C1RangeStyle> GetStyles( 
   C1TextRange range
)

Parameters

range
Remarks
The text ranges inside the returned collection of C1RangeStyle must not overlap, and they must be ordered. In other words, the C1.WPF.RichTextBox.Documents.C1TextRange.End of a text range must be less or equal than the C1.WPF.RichTextBox.Documents.C1TextRange.Start of the next one.
See Also

Reference

IStyleOverride Interface
IStyleOverride Members