TextField.GetFontHeight(ShapeElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取此字体的行距 (即世界单位内文本) 的高度。 行距是上升 + 下降量 + 一些建议额外部分。 升高是基线上方的字符高度,而下降是基线下的字符的高度。 额外的降低了下降。
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