Selection Property

FlowDocumentReader.Selection Property


Gets the selected content of the FlowDocumentReader.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public TextSelection Selection { get; }

Property Value

Type: System.Windows.Documents.TextSelection

The selected content of the FlowDocumentReader.

Selection is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

The following example shows how to get the text that a user has selected in the FlowDocumentReader.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft