ElementOperations.GetModelingToolboxItemDisplayName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.