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
'Declaration
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: DoubleThe amount of space required above the text of the line before applying verticalScale.
bottomSpace
Type: DoubleThe amount of space required below the text of the line before applying verticalScale.
verticalScale
Type: DoubleThe 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
- 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.