CoreDesignSurfaceDomainModel::CreateElement Method (Partition^, Type^, array<PropertyAssignment^>^)
Visual Studio 2015
Creates an element of specified type.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: virtual ModelElement^ CreateElement( Partition^ partition, Type^ elementType, array<PropertyAssignment^>^ propertyAssignments ) override sealed
Parameters
- partition
-
Type:
Microsoft.VisualStudio.Modeling::Partition^
Partition where element is to be created.
- elementType
-
Type:
System::Type^
Element type which belongs to this domain model.
- propertyAssignments
-
Type:
array<Microsoft.VisualStudio.Modeling::PropertyAssignment^>^
New element property assignments.
Return Value
Type: Microsoft.VisualStudio.Modeling::ModelElement^
Show: