共用方式為


ITrackingPoint.GetCharacter Method

Maps this tracking point to the specified snapshot and gets the character at that position.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'宣告
Function GetCharacter ( _
    snapshot As ITextSnapshot _
) As Char
char GetCharacter(
    ITextSnapshot snapshot
)
wchar_t GetCharacter(
    ITextSnapshot^ snapshot
)
abstract GetCharacter : 
        snapshot:ITextSnapshot -> char 
function GetCharacter(
    snapshot : ITextSnapshot
) : char

Parameters

Return Value

Type: System.Char
The character at the specified position.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The tracking point is at the end position of the snapshot.

.NET Framework Security

See Also

Reference

ITrackingPoint Interface

Microsoft.VisualStudio.Text Namespace