LineTransform.Combine Method
Combines two LineTransform objects.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'宣告
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
- transform1
Type: Microsoft.VisualStudio.Text.Formatting.LineTransform
The first LineTransform to combine.
- transform2
Type: Microsoft.VisualStudio.Text.Formatting.LineTransform
The second LineTransform to combine.
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
- 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.