Compartilhar via


LineTransform Constructors

Definition

Overloads

LineTransform(Double)

Initializes a new instance of a LineTransform.

LineTransform(Double, Double, Double)

Initializes a new instance of a LineTransform.

LineTransform(Double, Double, Double, Double)

Initializes a new instance of a LineTransform.

LineTransform(Double)

Initializes a new instance of a LineTransform.

public:
 LineTransform(double verticalScale);
public:
 LineTransform(double verticalScale);
 LineTransform(double verticalScale);
public LineTransform (double verticalScale);
new Microsoft.VisualStudio.Text.Formatting.LineTransform : double -> Microsoft.VisualStudio.Text.Formatting.LineTransform
Public Sub New (verticalScale As Double)

Parameters

verticalScale
Double

The vertical scale factor to be applied to the text of the line, but not the space above and below the line.

Remarks

All LineTransform objects on a formatted line of text are combined using the Combine(LineTransform, LineTransform) operator below. The resulting LineTransform determines the placement and scaling of the rendered line of text.

Applies to

LineTransform(Double, Double, Double)

Initializes a new instance of a LineTransform.

public:
 LineTransform(double topSpace, double bottomSpace, double verticalScale);
public:
 LineTransform(double topSpace, double bottomSpace, double verticalScale);
 LineTransform(double topSpace, double bottomSpace, double verticalScale);
public LineTransform (double topSpace, double bottomSpace, double verticalScale);
new Microsoft.VisualStudio.Text.Formatting.LineTransform : double * double * double -> Microsoft.VisualStudio.Text.Formatting.LineTransform
Public Sub New (topSpace As Double, bottomSpace As Double, verticalScale As Double)

Parameters

topSpace
Double

The amount of space required above the text of the line before applying verticalScale.

bottomSpace
Double

The amount of space required below the text of the line before applying verticalScale.

verticalScale
Double

The vertical scale factor to be applied to the text of the line, but not the space above and below the line.

Remarks

All the LineTransform objects on a formatted line of text are combined using the Combine(LineTransform, LineTransform) operator, and the combined LineTransform determines the placement and scaling of the rendered line of text.

Negative topSpace and bottomSpace values will be ignored, since they will always be combined with at least one LineTransform with non-negative space requests.

The rendered height of a line will be ((line text height) + topSpace + bottomSpace) * verticalScale.

Applies to

LineTransform(Double, Double, Double, Double)

Initializes a new instance of a LineTransform.

public:
 LineTransform(double topSpace, double bottomSpace, double verticalScale, double right);
public:
 LineTransform(double topSpace, double bottomSpace, double verticalScale, double right);
 LineTransform(double topSpace, double bottomSpace, double verticalScale, double right);
public LineTransform (double topSpace, double bottomSpace, double verticalScale, double right);
new Microsoft.VisualStudio.Text.Formatting.LineTransform : double * double * double * double -> Microsoft.VisualStudio.Text.Formatting.LineTransform
Public Sub New (topSpace As Double, bottomSpace As Double, verticalScale As Double, right As Double)

Parameters

topSpace
Double

The amount of space required above the text of the line before applying verticalScale.

bottomSpace
Double

The amount of space required below the text of the line before applying verticalScale.

verticalScale
Double

The vertical scale factor to be applied to the text of the line and the space above and below the line.

right
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(LineTransform, LineTransform) operator, and the combined LineTransform determines the placement and scaling of the rendered line of text.

Negative topSpace and bottomSpace values will be ignored, since they will always be combined with at least one LineTransform with non-negative space requests.

The rendered height of a line will be ((line text height) + topSpace + bottomSpace) * verticalScale.

Applies to