Class TextSelection
Represents text selection.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Selection
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class TextSelection
Properties
EndPosition
Gets the end position of the selection.
Declaration
public TextPosition EndPosition { get; }
Property Value
TextPosition
The end position. |
IsEmpty
Checks if the selection is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
The is empty. |
StartPosition
Gets the start position of the selection.
Declaration
public TextPosition StartPosition { get; }
Property Value
TextPosition
The start position. |
Methods
Clear()
Clears the selection.
Declaration
public void Clear()
GetSelectedText()
Gets the selected text.
Declaration
public string GetSelectedText()
Returns
System.String
|
GetSelectedTextAsync()
Gets the selected text async.
Declaration
public Task<string> GetSelectedTextAsync()
Returns
System.Threading.Tasks.Task<System.String>
|
GetSelectionGeometry(RadFixedPage)
Gets the selection geometry for given page.
Declaration
public PathGeometry GetSelectionGeometry(RadFixedPage page)
Parameters
RadFixedPage
page
The page. |
Returns
System.Windows.Media.PathGeometry
|
SelectAll()
Selects the whole document.
Declaration
public void SelectAll()
SetSelection(TextPosition, TextPosition)
Sets the selection.
Declaration
public void SetSelection(TextPosition startPosition, TextPosition endPosition)
Parameters
TextPosition
startPosition
The start position. |
TextPosition
endPosition
The end position. |
SetSelectionEnd(TextPosition)
Sets the selection end.
Declaration
public void SetSelectionEnd(TextPosition endPosition)
Parameters
TextPosition
endPosition
The end position. |
SetSelectionStart(TextPosition)
Sets the selection start.
Declaration
public void SetSelectionStart(TextPosition startPosition)
Parameters
TextPosition
startPosition
The start position. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
System.String
A string that represents the current object. |
Overrides
Events
SelectionChanged
Occurs when selection is changed.
Declaration
public event EventHandler SelectionChanged
Event Type
System.EventHandler
|
SelectionChanging
Occurs when selection is changing.
Declaration
public event EventHandler SelectionChanging
Event Type
System.EventHandler
|