ListField.GetItemTextHeight Method (ShapeElement)

 

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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

protected double GetItemTextHeight(
	ShapeElement parentShape
)

Parameters

parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement

The ShapeElement to which this ShapeField belongs

Return Value

Type: System.Double
Return to top
Show: