ILineTransformSource.GetLineTransform 方法
計算指定已格式化的文字行的行轉換。
命名空間: Microsoft.VisualStudio.Text.Formatting
組件: Microsoft.VisualStudio.Text.UI.Wpf (在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
語法
'宣告
Function GetLineTransform ( _
line As ITextViewLine, _
yPosition As Double, _
placement As ViewRelativePosition _
) As LineTransform
LineTransform GetLineTransform(
ITextViewLine line,
double yPosition,
ViewRelativePosition placement
)
LineTransform GetLineTransform(
ITextViewLine^ line,
double yPosition,
ViewRelativePosition placement
)
abstract GetLineTransform :
line:ITextViewLine *
yPosition:float *
placement:ViewRelativePosition -> LineTransform
function GetLineTransform(
line : ITextViewLine,
yPosition : double,
placement : ViewRelativePosition
) : LineTransform
參數
line
類型:Microsoft.VisualStudio.Text.Formatting.ITextViewLine用來計算線條轉換行。
yPosition
類型:Double行的 Y 座標。
placement
類型:Microsoft.VisualStudio.Text.Editor.ViewRelativePosition相對於 yPosition 的行位置。
傳回值
類型:Microsoft.VisualStudio.Text.Formatting.LineTransform
該行的行轉換。
備註
如果placement ViewRelativePosition.Top,則會位在頂端列的yPosition。 否則會位在行底部yPosition。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。