TextChange Class
Contains information about the changes that occur in the TextChanged event.
Assembly: PresentationFramework (in PresentationFramework.dll)
| 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 the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | 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.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


