Version

Ranges Property

Returns all the Ranges currently selected in the associated RichDocumentView. (read only)
Syntax
'Declaration
 
Public ReadOnly Property Ranges As ReadOnlyObservableCollection(Of Range)
Remarks

To access the 'current' (i.e., most recent) range selected in the associated RichDocumentView use the Range property. The Range property always returns the last entry in the Ranges collection There is always at least one entry in the Ranges collection which is the same range returned by the Range property.

Note: When the length of the current Range goes to zero, the Ranges collection is cleared of all previous selections, and only the current range remains in the Ranges collection.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also