Share via


LineTransform Constructor (Double, Double, Double, Double)

Initializes a new instance of a LineTransform.

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

Syntax

'Declaration
Public Sub New ( _
    topSpace As Double, _
    bottomSpace As Double, _
    verticalScale As Double, _
    right As Double _
)
public LineTransform(
    double topSpace,
    double bottomSpace,
    double verticalScale,
    double right
)
public:
LineTransform(
    double topSpace, 
    double bottomSpace, 
    double verticalScale, 
    double right
)
new : 
        topSpace:float * 
        bottomSpace:float * 
        verticalScale:float * 
        right:float -> LineTransform
public function LineTransform(
    topSpace : double, 
    bottomSpace : double, 
    verticalScale : double, 
    right : double
)

Parameters

  • topSpace
    Type: System.Double
    The amount of space required above the text of the line before applying verticalScale.
  • bottomSpace
    Type: System.Double
    The amount of space required below the text of the line before applying verticalScale.
  • verticalScale
    Type: System.Double
    The vertical scale factor to be applied to the text of the line and the space above and below the line.
  • right
    Type: System.Double
    The x-coordinate of the right edge the line (typically the right edge of any adornment on the line that extends to the right of the line's text).

Remarks

All the LineTransform objects on a formatted line of text are combined using the Combine method, and the resulting LineTransform determines the placement and scaling of the rendered line of text. Negative topSpace and bottomSpace values are ignored, since these values are always combined with at least one LineTransform with non-negative space requests. The rendered height of a line is ((line text height) + topSpace + bottomSpace) * verticalScale.

.NET Framework Security

See Also

Reference

LineTransform Structure

LineTransform Overload

Microsoft.VisualStudio.Text.Formatting Namespace