Share via


TextChange Structure

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Describes a text change operation.

Namespace:  System.Web.Razor.Text
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
Public Structure TextChange
'Usage
Dim instance As TextChange
public struct TextChange
public value class TextChange
[<SealedAttribute>]
type TextChange =  struct end
JScript suports the use of structures, but not the declaration of new ones.

The TextChange type exposes the following members.

Constructors

  Name Description
Public method TextChange This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the TextChange class.

Top

Properties

  Name Description
Public property IsDelete This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a value that indicates whether this text change is a delete.
Public property IsInsert This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a value that indicates whether this text change is an insert.
Public property IsReplace This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a value that indicates whether this text change is a replace.
Public property NewBuffer This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets a new text buffer.
Public property NewLength This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the length of the new text.
Public property NewPosition This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the position of the text change in the snapshot immediately after the change.
Public property NewText This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the text that replaced the old text.
Public property OldBuffer This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets an old text buffer.
Public property OldLength This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the length of the old text.
Public property OldPosition This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the position of the text change in the snapshot immediately before the change.
Public property OldText This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the text that was replaced.

Top

Methods

  Name Description
Public method ApplyChange(Span) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Applies the specified text change.
Public method ApplyChange(String, Int32) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Applies the specified text change.
Public method Equals This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the specified object is equal to the current object. (Overrides ValueType.Equals(Object).)
Public method GetHashCode This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the hash code for this text change. (Overrides ValueType.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method Normalize This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns a normalized value of this text change.
Public method ToString This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns a string representation of the text change. (Overrides ValueType.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the two text change are equal.
Public operatorStatic member Inequality This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the two text change are not equal.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Razor.Text Namespace