Compartilhar via


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

'Declaration
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
Public method TextExtent(TextExtent) Initializes a new instance of a TextExtent from the specified TextExtent.
Public method TextExtent(SnapshotSpan, Boolean) Initializes a new instance of TextExtent.

Top

Properties

  Name Description
Public property IsSignificant Determines whether the extent is significant.
Public property Span Gets the SnapshotSpan.

Top

Methods

  Name Description
Public method Equals Determines whether two TextExtent objects are the same. (Overrides ValueType.Equals(Object).)
Public method GetHashCode Gets the hash code of the object. (Overrides ValueType.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether two TextExtent objects are the same.
Public operatorStatic member 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.

See Also

Reference

Microsoft.VisualStudio.Text.Operations Namespace