ElementOperations.GetElementGroupPrototype Method

Definition

Gets the ElementGroupPrototype from the DataObject if it exists.

public:
 static Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ GetElementGroupPrototype(IServiceProvider ^ serviceProvider, System::Windows::Forms::IDataObject ^ data);
public static Microsoft.VisualStudio.Modeling.ElementGroupPrototype GetElementGroupPrototype (IServiceProvider serviceProvider, System.Windows.Forms.IDataObject data);
static member GetElementGroupPrototype : IServiceProvider * System.Windows.Forms.IDataObject -> Microsoft.VisualStudio.Modeling.ElementGroupPrototype
Public Shared Function GetElementGroupPrototype (serviceProvider As IServiceProvider, data As IDataObject) As ElementGroupPrototype

Parameters

serviceProvider
IServiceProvider

The service provider to use for retrieving the IToolboxService.

data
IDataObject

The IDataObject to retrieve the ElementGroupPrototype from.

Returns

The ElementGroupPrototype from the DataObject.

Remarks

The data format name is assumed to be ElementGroupPrototype.DefaultDataFormatName.

Applies to