Share via


LineTransform.Combine(LineTransform, LineTransform) Method

Definition

Combines two LineTransform objects.

public:
 static Microsoft::VisualStudio::Text::Formatting::LineTransform Combine(Microsoft::VisualStudio::Text::Formatting::LineTransform transform1, Microsoft::VisualStudio::Text::Formatting::LineTransform transform2);
public:
 static Microsoft::VisualStudio::Text::Formatting::LineTransform Combine(Microsoft::VisualStudio::Text::Formatting::LineTransform transform1, Microsoft::VisualStudio::Text::Formatting::LineTransform transform2);
 static Microsoft::VisualStudio::Text::Formatting::LineTransform Combine(Microsoft::VisualStudio::Text::Formatting::LineTransform transform1, Microsoft::VisualStudio::Text::Formatting::LineTransform transform2);
public static Microsoft.VisualStudio.Text.Formatting.LineTransform Combine (Microsoft.VisualStudio.Text.Formatting.LineTransform transform1, Microsoft.VisualStudio.Text.Formatting.LineTransform transform2);
static member Combine : Microsoft.VisualStudio.Text.Formatting.LineTransform * Microsoft.VisualStudio.Text.Formatting.LineTransform -> Microsoft.VisualStudio.Text.Formatting.LineTransform
Public Shared Function Combine (transform1 As LineTransform, transform2 As LineTransform) As LineTransform

Parameters

transform1
LineTransform

The first LineTransform to combine.

transform2
LineTransform

The second LineTransform to combine.

Returns

The combined LineTransform.

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.

Applies to