Partager via


LineTransform Constructor (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

'Déclaration
Public Sub New ( _
    topSpace As Double, _
    bottomSpace As Double, _
    verticalScale As Double _
)
public LineTransform(
    double topSpace,
    double bottomSpace,
    double verticalScale
)
public:
LineTransform(
    double topSpace, 
    double bottomSpace, 
    double verticalScale
)
new : 
        topSpace:float * 
        bottomSpace:float * 
        verticalScale:float -> LineTransform
public function LineTransform(
    topSpace : double, 
    bottomSpace : double, 
    verticalScale : 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.

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 the 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