共用方式為


ElementOperations.GetModelingToolboxItemDisplayName Method

Definition

If the IDataObject contains a ModelingToolboxItem, this returns its DisplayName, otherwise null.

protected:
 static System::String ^ GetModelingToolboxItemDisplayName(IServiceProvider ^ serviceProvider, System::Windows::Forms::IDataObject ^ data);
protected static string GetModelingToolboxItemDisplayName (IServiceProvider serviceProvider, System.Windows.Forms.IDataObject data);
static member GetModelingToolboxItemDisplayName : IServiceProvider * System.Windows.Forms.IDataObject -> string
Protected Shared Function GetModelingToolboxItemDisplayName (serviceProvider As IServiceProvider, data As IDataObject) As String

Parameters

serviceProvider
IServiceProvider

The service provider to use for retrieving the IToolboxService.

data
IDataObject

The IDataObject to retrieve the ModelingToolboxItem data from.

Returns

A ModelingToolboxItem.DisplayName if it exists, otherwise null.

Applies to