StyleSet.GetPenCopy(StyleSetResourceId) Method

Definition

Retrieves a specific Pen from the StyleSet. If it's not in the current one, it looks up the parent chain to see if it can find it there. This is a copy. Caller is responsible for dispose.

public:
 System::Drawing::Pen ^ GetPenCopy(Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ penId);
public System.Drawing.Pen GetPenCopy (Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId penId);
member this.GetPenCopy : Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId -> System.Drawing.Pen
Public Function GetPenCopy (penId As StyleSetResourceId) As Pen

Parameters

Returns

Pen

A copy of the requested Pen.

Applies to