StyleSet.GetPenCopy Method
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.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Dichiarazione
Public Function GetPenCopy ( _
penId As StyleSetResourceId _
) As Pen
public Pen GetPenCopy(
StyleSetResourceId penId
)
public:
Pen^ GetPenCopy(
StyleSetResourceId^ penId
)
member GetPenCopy :
penId:StyleSetResourceId -> Pen
public function GetPenCopy(
penId : StyleSetResourceId
) : Pen
Parameters
Return Value
Type: System.Drawing.Pen
.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.