TextSelection ClassDocument Toolkit Help
Encapsulates a selection state.
Inheritance Hierarchy

SystemObject
  FirstFloor.DocumentsTextRange
    FirstFloor.DocumentsTextSelection

Namespace: FirstFloor.Documents
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.11.0)
Syntax

public class TextSelection : TextRange, 
	INotifyPropertyChanged

The TextSelection type exposes the following members.

Constructors

  NameDescription
Public methodTextSelection
Initializes a new instance of the TextSelection class.
Top
Properties

  NameDescription
Public propertyBackground
Gets or sets the brush used to fill the background of the selected text.
Public propertyEnd
Get the position that marks the end of the text range.
(Inherited from TextRange.)
Public propertyForeground
Gets or sets the brush used to fill the foreground of the selected text.
Public propertyIsCopyAllowed
Gets or sets a value indicating whether copying the text selection to clipboard is allowed
Public propertyIsEmpty
Gets a value indicating whether the text range is empty.
(Inherited from TextRange.)
Public propertyIsEnabled
Gets or sets a value indicating whether text selection is enabled.
Public propertyMax
Gets the larger of the start and end point.
(Inherited from TextRange.)
Public propertyMin
Gets the smaller of the start and end point.
(Inherited from TextRange.)
Public propertyStart
Gets the position that marks the beginning of the text range.
(Inherited from TextRange.)
Public propertyText
Gets the plain text contents of the current selection.
Public propertyTextContainer
Gets or sets the text container for this selection instance.
Top
Methods

  NameDescription
Public methodClone
Creates a copy of the current TextRange object.
(Inherited from TextRange.)
Public methodContains
Checks whether a position (specified by a TextPointer) is located within the current range.
(Inherited from TextRange.)
Public methodContainsPage
Checks whether specified page is located within the current range.
(Inherited from TextRange.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from TextRange.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from TextRange.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSelect(TextRange)
Updates the current selection to match the specified text range.
Public methodSelect(TextPointer, TextPointer)
Updates the current selection, taking two TextPointer positions to indicate the updated selection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnselect
Clears the selection.
Top
Events

  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
Top
See Also

Reference