다음을 통해 공유


ITextViewLine.GetBufferPositionFromXCoordinate 메서드 (Double, Boolean)

문자 범위에 지정된 X 좌표가 포함된 문자의 버퍼 위치를 가져옵니다.

네임스페이스:  Microsoft.VisualStudio.Text.Formatting
어셈블리:  Microsoft.VisualStudio.Text.UI(Microsoft.VisualStudio.Text.UI.dll)

구문

‘선언
Function GetBufferPositionFromXCoordinate ( _
    xCoordinate As Double, _
    textOnly As Boolean _
) As Nullable(Of SnapshotPoint)
Nullable<SnapshotPoint> GetBufferPositionFromXCoordinate(
    double xCoordinate,
    bool textOnly
)
Nullable<SnapshotPoint> GetBufferPositionFromXCoordinate(
    double xCoordinate, 
    bool textOnly
)
abstract GetBufferPositionFromXCoordinate : 
        xCoordinate:float * 
        textOnly:bool -> Nullable<SnapshotPoint> 
function GetBufferPositionFromXCoordinate(
    xCoordinate : double, 
    textOnly : boolean
) : Nullable<SnapshotPoint>

매개 변수

  • xCoordinate
    형식: Double

    원하는 문자의 X 좌표입니다.

  • textOnly
    형식: Boolean

    경우 true,이 메서드를 반환 하 고 nullNull 참조(Visual Basic의 경우 Nothing) 경우 xCoordinate 는 위에 장식입니다.

반환 값

형식: Nullable<SnapshotPoint>
텍스트 버퍼에 따른 지점에 있는 문자의 xCoordinate, 또는 nullNull 참조(Visual Basic의 경우 Nothing) 해당 위치에 문자가 없으면.

설명

가장자리 바인딩 문자는 다음 문자를 포함할 수 간주 됩니다. 가장자리의 마지막 문자 범위의 하지 않는 모든 문자에 매핑합니다. 경우 textOnly 마찬가지입니다 및 xCoordinate 인 보다는 장식, 장식와 관련 된 텍스트 위치를 반환 합니다.

.NET Framework 보안

참고 항목

참조

ITextViewLine 인터페이스

GetBufferPositionFromXCoordinate 오버로드

Microsoft.VisualStudio.Text.Formatting 네임스페이스