Share via


ILineTransformSource.GetLineTransform Method

Calculates the line transform for a given line of formatted text.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Formatting.LineTransform
The line transform for that line.

Remarks

If placement is ViewRelativePosition.Top, then the top of the line will be located at yPosition. Otherwise the bottom of the line will be located at yPosition.

.NET Framework Security

See Also

Reference

ILineTransformSource Interface

Microsoft.VisualStudio.Text.Formatting Namespace