다음을 통해 공유


ShapeElement.FindDecorator Method (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

‘선언
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

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

See Also

Reference

ShapeElement Class

FindDecorator Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace