Finds the shape decorator.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Shared Function FindDecorator ( _
decorators As IList(Of Decorator), _
decoratorName As String _
) As Decorator
'使用
Dim decorators As IList(Of Decorator)
Dim decoratorName As String
Dim returnValue As Decorator
returnValue = ShapeElement.FindDecorator(decorators, _
decoratorName)
public static Decorator FindDecorator(
IList<Decorator> decorators,
string decoratorName
)
public:
static Decorator^ FindDecorator(
IList<Decorator^>^ decorators,
String^ decoratorName
)
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.StringThe name of the decorator.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.Decorator
The shape decorator.
Permissions
- 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.