ILineTransformSource::GetLineTransform Method (ITextViewLine^, Double, ViewRelativePosition)

 

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)

LineTransform GetLineTransform(
	ITextViewLine^ line,
	double yPosition,
	ViewRelativePosition placement
)

Parameters

line
Type: Microsoft.VisualStudio.Text.Formatting::ITextViewLine^

The line for which to calculate the line transform.

yPosition
Type: System::Double

The y-coordinate of the line.

placement
Type: Microsoft.VisualStudio.Text.Editor::ViewRelativePosition

The placement of the line with respect to yPosition.

Return Value

Type: Microsoft.VisualStudio.Text.Formatting::LineTransform

The line transform for that line.

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.

Return to top
Show: