Freigeben über


ITextViewLine.GetBufferPositionFromXCoordinate-Methode (Double)

Ruft die Pufferposition des Zeichens ab, dessen Zeichenbegrenzungen die angegebene x-Koordinate enthalten.

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

Syntax

'Declaration
Function GetBufferPositionFromXCoordinate ( _
    xCoordinate As Double _
) As Nullable(Of SnapshotPoint)
Nullable<SnapshotPoint> GetBufferPositionFromXCoordinate(
    double xCoordinate
)
Nullable<SnapshotPoint> GetBufferPositionFromXCoordinate(
    double xCoordinate
)
abstract GetBufferPositionFromXCoordinate : 
        xCoordinate:float -> Nullable<SnapshotPoint> 
function GetBufferPositionFromXCoordinate(
    xCoordinate : double
) : Nullable<SnapshotPoint>

Parameter

  • xCoordinate
    Typ: Double

    Die x-Koordinate des gewünschten Zeichens.

Rückgabewert

Typ: Nullable<SnapshotPoint>
Der textpufferbasierte Punkt des Zeichens bei xCoordinate, oder NULL, wenn kein Zeichen an dieser Position befindet.

Hinweise

Dies ist mit GetBufferPositionFromXCoordinate (xCoordinatefalse).

.NET Framework-Sicherheit

Siehe auch

Referenz

ITextViewLine Schnittstelle

GetBufferPositionFromXCoordinate-Überladung

Microsoft.VisualStudio.Text.Formatting-Namespace