获取其字符边界包含给定 x 坐标的字符的缓冲区位置。
命名空间: Microsoft.VisualStudio.Text.Formatting
程序集: Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)
语法
声明
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>
参数
xCoordinate
类型:Double所需字符的 x 坐标。
返回值
类型:Nullable<SnapshotPoint>
; 如果没有字符在该位置,基于文本缓冲区的点字符在 xCoordinate则为 null。
备注
这与 GetBufferPositionFromXCoordinate (xCoordinate等效,错误)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。