ILineTransformSource::GetLineTransform Method (ITextViewLine^, Double, ViewRelativePosition)
Visual Studio 2015
Calculates the line transform for a given line of formatted text.
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::LineTransformThe 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.
Show: