ShapeElement.FindDecorator Method (IList<Decorator>, String)
Finds the shape decorator that has a given name.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public Shared Function FindDecorator ( _
decorators As IList(Of Decorator), _
decoratorName As String _
) As Decorator
public static Decorator FindDecorator(
IList<Decorator> decorators,
string decoratorName
)
public:
static Decorator^ FindDecorator(
IList<Decorator^>^ decorators,
String^ decoratorName
)
static member FindDecorator :
decorators:IList<Decorator> *
decoratorName:string -> Decorator
public static function FindDecorator(
decorators : IList<Decorator>,
decoratorName : String
) : Decorator
Parameters
- decorators
Type: System.Collections.Generic.IList<Decorator>
The list of decorators to search.
- decoratorName
Type: System.String
The name of the decorator.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.Decorator
The shape decorator.
.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.