ListField.GetItemTextHeight(ShapeElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
Parameters
- parentShape
- ShapeElement
The ShapeElement to which this ShapeField belongs
Returns
The height of just the text in the list item.