共用方式為


IVerticalScrollBar.GetYCoordinateOfScrollMapPosition 方法

取得捲軸追蹤中對應至捲動對應座標位置的 Y 座標。

命名空間:  Microsoft.VisualStudio.Text.Editor
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
Function GetYCoordinateOfScrollMapPosition ( _
    scrollMapPosition As Double _
) As Double
double GetYCoordinateOfScrollMapPosition(
    double scrollMapPosition
)
double GetYCoordinateOfScrollMapPosition(
    double scrollMapPosition
)
abstract GetYCoordinateOfScrollMapPosition : 
        scrollMapPosition:float -> float
function GetYCoordinateOfScrollMapPosition(
    scrollMapPosition : double
) : double

參數

  • scrollMapPosition
    類型:Double

    想要的位置。

傳回值

類型:Double
對應的 y 軸座標。

.NET Framework 安全性

請參閱

參考

IVerticalScrollBar 介面

Microsoft.VisualStudio.Text.Editor 命名空間