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 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.