Share via


ListField.GetPaddingAboveItemText Method

Returns the spacing between the top of the item and the top of the text. The text height (Font.GetHeight()) contains some padding, so this is padding in addition to 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 Overridable Function GetPaddingAboveItemText ( _
    parentShape As ShapeElement _
) As Double
protected virtual double GetPaddingAboveItemText(
    ShapeElement parentShape
)
protected:
virtual double GetPaddingAboveItemText(
    ShapeElement^ parentShape
)
abstract GetPaddingAboveItemText : 
        parentShape:ShapeElement -> float  
override GetPaddingAboveItemText : 
        parentShape:ShapeElement -> float
protected function GetPaddingAboveItemText(
    parentShape : ShapeElement
) : double

Parameters

Return Value

Type: Double

.NET Framework Security

See Also

Reference

ListField Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace