TextChange Class
Contains information about the changes that occur in the TextChanged event.
Assembly: PresentationFramework (in PresentationFramework.dll)
The TextChange type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AddedLength | Gets or sets the number of symbols that have been added to the control. |
![]() | Offset | Gets or sets the position at which the change occurred. |
![]() | RemovedLength | Gets or sets the number of symbols that have been removed from the control. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
A TextChange object specifies where a change occurred in a TextBox or RichTextBox. The Offset property specifies the position of the change, the AddedLength property specifies how many symbols were added, and the RemovedLength property specifies how many symbols were removed. When the change occurs in a TextBox, a symbol is a single character. When a change occurs in a RichTextBox, a symbol is one of the following:
An opening or closing tag for a TextElement element.
A UIElement element contained within an InlineUIContainer or BlockUIContainer. Note that such a UIElement is always counted as exactly one symbol; any additional content or elements contained by the UIElement are not counted as symbols.
Each 16-bit Unicode character inside of a text Run element.
TextChange is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.
Windows 7, 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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
