ShapeField.GetPen Method (DiagramClientView, ShapeElement, Color)
Gets the pen that draws the shape element to which the shape field is assigned.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public virtual Pen GetPen( DiagramClientView view, ShapeElement parentShape, ref Color oldColor )
The diagram client view.
The shape element to which the shape field is assigned.
The color of the pen that is being used for the shape field.
Return ValueType: System.Drawing.Pen
The pen that draws the shape element to which the shape field is assigned.
By default, this method returns the default pen of this ShapeField. To dynamically change the pen for this ShapeField, consider overriding GetPenId first. If that method is inadequate, override this method.