共用方式為


ITextViewLine.Extent Property

Gets the extent of the line, excluding any line break characters.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'宣告
ReadOnly Property Extent As SnapshotSpan
SnapshotSpan Extent { get; }
property SnapshotSpan Extent {
    SnapshotSpan get ();
}
abstract Extent : SnapshotSpan
function get Extent () : SnapshotSpan

Property Value

Type: Microsoft.VisualStudio.Text.SnapshotSpan
The extent of the line, excluding any line break characters.

.NET Framework Security

See Also

Reference

ITextViewLine Interface

Microsoft.VisualStudio.Text.Formatting Namespace