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
'Declaración
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
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.