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
声明
Public Function FindDecorator ( _
    decoratorName As String _
) As Decorator
public Decorator FindDecorator(
    string decoratorName
)
public:
Decorator^ FindDecorator(
    String^ decoratorName
)
member FindDecorator : 
        decoratorName:string -> Decorator 
public function FindDecorator(
    decoratorName : String
) : Decorator
Parameters
- decoratorName
 Type: System.String
 The name of the decorator.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.Decorator
The shape decorator.
Examples
public static DslDiagrams::Decorator FindCommentConnectorDecorator(string decoratorName)
{
if(decorators == null) return null;
return DslDiagrams::ShapeElement.FindDecorator(decorators, decoratorName);
}
.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.