TextField.GetFontHeight(ShapeElement) 方法

定义

获取此字体的行距 (即世界单位内文本) 的高度。 行距是上升 + 下降量 + 一些建议额外部分。 升高是基线上方的字符高度,而下降是基线下的字符的高度。 额外的降低了下降。

public:
 virtual float GetFontHeight(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape);
public virtual float GetFontHeight (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape);
abstract member GetFontHeight : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> single
override this.GetFontHeight : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> single
Public Overridable Function GetFontHeight (parentShape As ShapeElement) As Single

参数

parentShape
ShapeElement

返回

Single

适用于