SnapshotPoint.GetChar Method
Gets the character at the position of this snapshot point.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
声明
Public Function GetChar As Char
public char GetChar()
public:
wchar_t GetChar()
member GetChar : unit -> char
public function GetChar() : char
Return Value
Type: System.Char
The character at the position of this snapshot point.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The position of this point is equal to the length of the snapshot. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.