ShapeElement.FindShapeField Method

Definition

Overloads

FindShapeField(String)

Returns the first ShapeField with the given name in the ShapeFields collection. If a field with the given name is not found, this method returns null.

FindShapeField(IList<ShapeField>, String)

FindShapeField(String)

Returns the first ShapeField with the given name in the ShapeFields collection. If a field with the given name is not found, this method returns null.

C++
public:
 Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ FindShapeField(System::String ^ fieldName);

Parameters

fieldName
String

Identifier for the field to return.

Returns

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022

FindShapeField(IList<ShapeField>, String)

C++
public:
 static Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ FindShapeField(System::Collections::Generic::IList<Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^> ^ shapeFields, System::String ^ fieldName);

Parameters

shapeFields
IList<ShapeField>
fieldName
String

Returns

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022