TextRange Methods

The TextRange type exposes the following members.

  NameDescription
Public method ApplyPropertyValue Applies a specified formatting property and value to the current selection.
Public method CanLoad Checks whether the current selection can be loaded with content in a specified data format.
Public method CanSave Checks whether the current selection can be saved as a specified data format.
Public method ClearAllProperties Removes all formatting properties (represented by Inline elements) from the current selection.
Public method Contains Checks whether a position (specified by a TextPointer) is located within the current selection.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetPropertyValue Returns the effective value of a specified formatting property on the current selection.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method Load Loads the current selection in a specified data format from a specified stream.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Save Overloaded. Saves the current selection to a specified stream in a specified data format.
Public method Select Updates the current selection, taking two TextPointer positions to indicate the updated selection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft