返回特定行和列的左上角的坐标。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function GetPointOfLineColumn ( _
iLine As Integer, _
iCol As Integer, _
<OutAttribute> ppt As POINT() _
) As Integer
int GetPointOfLineColumn(
int iLine,
int iCol,
POINT[] ppt
)
int GetPointOfLineColumn(
[InAttribute] int iLine,
[InAttribute] int iCol,
[OutAttribute] array<POINT>^ ppt
)
abstract GetPointOfLineColumn :
iLine:int *
iCol:int *
ppt:POINT[] byref -> int
function GetPointOfLineColumn(
iLine : int,
iCol : int,
ppt : POINT[]
) : int
参数
iLine
类型:Int32[in] 包含行索引的整数。
iCol
类型:Int32[in] 包含列索引的整数。 Viewcol 坐标可以包括虚拟空间。
ppt
类型:array<POINT[][out, retval] 定义行的左上角的 x 坐标和 Y 坐标的结构。 有关更多信息,请参见点 Platform SDK。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsTextView::GetPointOfLineColumn(
[in] long iLine,
[in] ViewCol iCol,
[out, retval] POINT * ppt
);
使用此方法来确定坐标 (以像素为单位) 指定的行和列的左上角的。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。