TextSpan Structure
Defines a span of text based on character and line index.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Déclaration
Public Structure TextSpan
public struct TextSpan
public value class TextSpan
[<Sealed>]
type TextSpan = struct end
JScript supports the use of structures, but not the declaration of new ones.
The TextSpan type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
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 | Returns the hash code for this instance. (Inherited from ValueType.) | |
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 the fully qualified type name of this instance. (Inherited from ValueType.) |
Top
Fields
Name | Description | |
---|---|---|
iEndIndex | Ending character index within the line. This value must be less than or equal to the length of the line. | |
iEndLine | Ending line index. | |
iStartIndex | Starting character index within the line. This value must be less than or equal to the length of line. | |
iStartLine | Starting line index. |
Top
Remarks
Use this structure to define a span of text in terms of a beginning and an ending line and character index.
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.