合并两个 LineTransform 对象。
命名空间: Microsoft.VisualStudio.Text.Formatting
程序集: Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)
语法
声明
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
参数
transform1
类型:Microsoft.VisualStudio.Text.Formatting.LineTransform要组合的第一个 LineTransform。
transform2
类型:Microsoft.VisualStudio.Text.Formatting.LineTransform要组合的第二个 LineTransform。
返回值
类型:Microsoft.VisualStudio.Text.Formatting.LineTransform
组合的 LineTransform。
备注
使用 Combine 方法,文本一设置格式的行的所有 LineTransform 对象合并,因此,生成的 LineTransform 确定位置和缩放文本呈现的行。 ,因为值始终是将与非负空间请求,的至少一 LineTransform 负 topSpace 和 bottomSpace 值被忽略。 行的呈现高度。 (行文本高度) + topSpace + bottomSpace) * verticalScale。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。