共用方式為


IFormattedLine.SetTop 方法

設定位置,這個位置會用來格式化此格式化文字行中的文字。

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

語法

'宣告
Sub SetTop ( _
    top As Double _
)
void SetTop(
    double top
)
void SetTop(
    double top
)
abstract SetTop : 
        top:float -> unit
function SetTop(
    top : double
)

參數

  • top
    類型:Double

    格式化文字行的頂端位置。

例外狀況

例外狀況 條件
ObjectDisposedException

已經處置這個 IWpfTextViewLine

.NET Framework 安全性

請參閱

參考

IFormattedLine 介面

Microsoft.VisualStudio.Text.Formatting 命名空間