StyleSet.AddPen(StyleSetResourceId, StyleSetResourceId, PenSettings) Method

Definition

Add a new Pen to this StyleSet.

public:
 void AddPen(Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ newPenId, Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ basePenId, Microsoft::VisualStudio::Modeling::Diagrams::PenSettings ^ penSettings);
public void AddPen (Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId newPenId, Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId basePenId, Microsoft.VisualStudio.Modeling.Diagrams.PenSettings penSettings);
member this.AddPen : Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId * Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId * Microsoft.VisualStudio.Modeling.Diagrams.PenSettings -> unit
Public Sub AddPen (newPenId As StyleSetResourceId, basePenId As StyleSetResourceId, penSettings As PenSettings)

Parameters

newPenId
StyleSetResourceId

Id of the new pen to create.

basePenId
StyleSetResourceId

Id of the pen on which to base the new one.

penSettings
PenSettings

Settings flags for the Pen's overridden or immutable properties.

Applies to