Partager via


LineTransform.Combine Method

Combines two LineTransform objects.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Déclaration
Public Shared Function Combine ( _
    transform1 As LineTransform, _
    transform2 As LineTransform _
) As LineTransform
public static LineTransform Combine(
    LineTransform transform1,
    LineTransform transform2
)
public:
static LineTransform Combine(
    LineTransform transform1, 
    LineTransform transform2
)
static member Combine : 
        transform1:LineTransform * 
        transform2:LineTransform -> LineTransform 
public static function Combine(
    transform1 : LineTransform, 
    transform2 : LineTransform
) : LineTransform

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Formatting.LineTransform
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.

.NET Framework Security

See Also

Reference

LineTransform Structure

Microsoft.VisualStudio.Text.Formatting Namespace