ShapeField.GetPenId Method

Gets the ID of the pen that draws the shape element to which the shape field is assigned.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'宣言
Public Overridable Function GetPenId ( _
    parentShape As ShapeElement _
) As StyleSetResourceId
'使用
Dim instance As ShapeField
Dim parentShape As ShapeElement
Dim returnValue As StyleSetResourceId

returnValue = instance.GetPenId(parentShape)
public virtual StyleSetResourceId GetPenId(
    ShapeElement parentShape
)
public:
virtual StyleSetResourceId^ GetPenId(
    ShapeElement^ parentShape
)
public function GetPenId(
    parentShape : ShapeElement
) : StyleSetResourceId

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId

The ID of the pen that draws the shape element to which the shape field is assigned.

Permissions

See Also

Reference

ShapeField Class

ShapeField Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace