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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Dichiarazione
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
- parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
Return Value
Type: System.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.