LineTransform Constructor (Double, Double, Double, Double)
Initializes a new instance of a LineTransform.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
public: LineTransform( double topSpace, double bottomSpace, double verticalScale, double right )
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).
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.