TextExtent Structure
Represents the extent of a word.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
声明
Public Structure TextExtent
public struct TextExtent
public value class TextExtent
[<Sealed>]
type TextExtent = struct end
JScript supports the use of structures, but not the declaration of new ones.
The TextExtent type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TextExtent(TextExtent) | Initializes a new instance of a TextExtent from the specified TextExtent. | |
TextExtent(SnapshotSpan, Boolean) | Initializes a new instance of TextExtent. |
Top
Properties
Name | Description | |
---|---|---|
IsSignificant | Determines whether the extent is significant. | |
Span | Gets the SnapshotSpan. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether two TextExtent objects are the same. (Overrides ValueType.Equals(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 | Gets the hash code of the object. (Overrides ValueType.GetHashCode().) | |
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
Operators
Name | Description | |
---|---|---|
Equality | Determines whether two TextExtent objects are the same. | |
Inequality | Determines whether two TextExtent objects are different. |
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.