Szerkesztés

Megosztás a következőn keresztül:


TextChange Class

Definition

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:

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)

Applies to

See also