Partager via


TextExtent Constructors

Definition

Overloads

TextExtent(TextExtent)

Initializes a new instance of a TextExtent from the specified TextExtent.

TextExtent(SnapshotSpan, Boolean)

Initializes a new instance of TextExtent.

TextExtent(TextExtent)

Initializes a new instance of a TextExtent from the specified TextExtent.

public:
 TextExtent(Microsoft::VisualStudio::Text::Operations::TextExtent textExtent);
 TextExtent(Microsoft::VisualStudio::Text::Operations::TextExtent textExtent);
public TextExtent (Microsoft.VisualStudio.Text.Operations.TextExtent textExtent);
new Microsoft.VisualStudio.Text.Operations.TextExtent : Microsoft.VisualStudio.Text.Operations.TextExtent -> Microsoft.VisualStudio.Text.Operations.TextExtent
Public Sub New (textExtent As TextExtent)

Parameters

textExtent
TextExtent

The TextExtent from which to copy.

Applies to

TextExtent(SnapshotSpan, Boolean)

Initializes a new instance of TextExtent.

public:
 TextExtent(Microsoft::VisualStudio::Text::SnapshotSpan span, bool isSignificant);
 TextExtent(Microsoft::VisualStudio::Text::SnapshotSpan span, bool isSignificant);
public TextExtent (Microsoft.VisualStudio.Text.SnapshotSpan span, bool isSignificant);
new Microsoft.VisualStudio.Text.Operations.TextExtent : Microsoft.VisualStudio.Text.SnapshotSpan * bool -> Microsoft.VisualStudio.Text.Operations.TextExtent
Public Sub New (span As SnapshotSpan, isSignificant As Boolean)

Parameters

span
SnapshotSpan

The SnapshotSpan that includes the extent.

isSignificant
Boolean

false if the extent contains whitespace, unless whitespace should be treated like any other character.

Applies to