LogicalToView 方法 (Document 對象)
將指定位置的邏輯坐標轉換為顯示坐標,并檢索 Point 對象 中的位置。 x 指定基于單個的水平(字元)位置。 y 指定基于單個的垂直(行)位置。 支持 EmEditor Professional 17.0 或之後的版本。[JavaScript]
point = document.LogicalView( x, y );
[VBScript]
point = document.LogicalView( x, y )
參數
範例
[JavaScript]
point = document.LogicalToView( 10, 1 );
x = point.x;
y = point.y;
[VBScript]
point = document.LogicalToView( 10, 1 )
x = point.x
y = point.y
版本