TextChange Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains information about the changes that occur in the TextChanged event.
public ref class TextChange
public class TextChange
type TextChange = class
Public Class TextChange
- Inheritance
-
TextChange
Remarks
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 Versions and Dependencies.
Properties
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. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (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) |