CoreDesignSurfaceDomainModel::CreateElement Method (Partition^, Type^, array<PropertyAssignment^>^)

 

Creates an element of specified type.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
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 to top
Show: