Sdílet prostřednictvím


ShapeField.GetPenId(ShapeElement) Method

Definition

Gets the id of the pen to draw with for the specified ShapeElement instance.

public:
 virtual Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ GetPenId(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape);
public virtual Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId GetPenId (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape);
abstract member GetPenId : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId
override this.GetPenId : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId
Public Overridable Function GetPenId (parentShape As ShapeElement) As StyleSetResourceId

Parameters

parentShape
ShapeElement

The ShapeElement on which to draw.

Returns

The id of the pen to draw with for the specified ShapeElement instance.

Remarks

By default, this method returns the default pen id.

To dynamically change the pen for this ShapeField, override this method.

Applies to