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

Syntax

'Declaration
Public Overridable Function GetPenId ( _
    parentShape As ShapeElement _
) As StyleSetResourceId
public virtual StyleSetResourceId GetPenId(
    ShapeElement parentShape
)
public:
virtual StyleSetResourceId^ GetPenId(
    ShapeElement^ parentShape
)
abstract GetPenId : 
        parentShape:ShapeElement -> StyleSetResourceId  
override GetPenId : 
        parentShape:ShapeElement -> StyleSetResourceId
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.

Remarks

By default, this method returns the default pen id. To dynamically change the pen for this ShapeField, override this method.

.NET Framework Security

See Also

Reference

ShapeField Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace