ListField.GetItemTextHeight 方法
取得清單項目中的一行文字的高度。這個文字的高度 (Font.GetHeight()) 包含一些填補,讓 GetPaddingAboveItemText 和 GetPaddingBelowItemText 是其他除此之外與邊框距離。
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
語法
'宣告
Protected Function GetItemTextHeight ( _
parentShape As ShapeElement _
) As Double
protected double GetItemTextHeight(
ShapeElement parentShape
)
參數
- parentShape
型別:Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
屬於此 ShapeField ShapeElement
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。