Sdílet prostřednictvím


ListField.GetItemTextHeight(ShapeElement) Method

Definition

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.

Applies to