StyleSet.AddPen Method
Add a new Pen to this StyleSet.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaration
Public Sub AddPen ( _
newPenId As StyleSetResourceId, _
basePenId As StyleSetResourceId, _
penSettings As PenSettings _
)
public void AddPen(
StyleSetResourceId newPenId,
StyleSetResourceId basePenId,
PenSettings penSettings
)
public:
void AddPen(
StyleSetResourceId^ newPenId,
StyleSetResourceId^ basePenId,
PenSettings^ penSettings
)
member AddPen :
newPenId:StyleSetResourceId *
basePenId:StyleSetResourceId *
penSettings:PenSettings -> unit
public function AddPen(
newPenId : StyleSetResourceId,
basePenId : StyleSetResourceId,
penSettings : PenSettings
)
Parameters
- newPenId
Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId
Id of the new pen to create.
- basePenId
Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId
Id of the pen on which to base the new one.
- penSettings
Type: Microsoft.VisualStudio.Modeling.Diagrams.PenSettings
Settings flags for the Pen's overridden or immutable properties.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.