ListField.GetItemTextHeight Method
Gets the height of a line of text in the list item. This text height (Font.GetHeight()) contains some padding, so GetPaddingAboveItemText and GetPaddingBelowItemText is additional padding on top of that.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Protected Function GetItemTextHeight ( _
parentShape As ShapeElement _
) As Double
protected double GetItemTextHeight(
ShapeElement parentShape
)
protected:
double GetItemTextHeight(
ShapeElement^ parentShape
)
member GetItemTextHeight :
parentShape:ShapeElement -> float
protected function GetItemTextHeight(
parentShape : ShapeElement
) : double
Parameters
parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementThe ShapeElement to which this ShapeField belongs
Return Value
Type: Double
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.