ListField.GetItemTextHeight(ShapeElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取列表项中的文本行的高度。
此文本高度 (的 GetHeight () ) 包含一些填充,因此 GetPaddingAboveItemText 和 GetPaddingBelowItemText 在其顶部附加填充。
protected:
double GetItemTextHeight(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape);
protected double GetItemTextHeight (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape);
member this.GetItemTextHeight : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> double
Protected Function GetItemTextHeight (parentShape As ShapeElement) As Double
参数
- parentShape
- ShapeElement
此 ShapeField 所属的 ShapeElement
返回
列表项中的文本的高度。