TextField.GetFontHeight 方法
取得這個字型 (也就是說,文字行的高度行距) 以全局單位表示。 行距是上升部分 + 下降部分 + 特定額外建議值。 上升部分是高於基準的字元高度,下降部分則是低於基準的字元高度。 額外低於深度。
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
語法
'宣告
Public Overridable Function GetFontHeight ( _
parentShape As ShapeElement _
) As Single
public virtual float GetFontHeight(
ShapeElement parentShape
)
參數
- parentShape
類型:Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。