AGI Ui Plugins 11Send comments on this topic.
CreateNetToolWindowParam Method (IAgUiPluginWindowSite)
See Also  Example
Plugin
The plugin that creates the window.
CreateParameters
Contains information about the assembly path, user control type name, window position, etc.
Windows






Windows & Linux

Description

Creates a custom tool window that hosts the .NET user control loaded from the assembly specified by the assemblyPath.

Syntax

[Visual Basic .NET]
Public Function CreateNetToolWindowParam( _
   ByVal Plugin As IAgUiPlugin, _
   ByVal CreateParameters As IAgUiPluginWindowCreateParameters _
) As IAgUiWindow
[C#]
public IAgUiWindow CreateNetToolWindowParam(
   IAgUiPlugin Plugin,
   IAgUiPluginWindowCreateParameters CreateParameters
);
[Managed C++]
public: IAgUiWindow^ CreateNetToolWindowParam(
   IAgUiPlugin ^ Plugin,
   IAgUiPluginWindowCreateParameters ^ CreateParameters
);
[Java]
public IAgUiWindow createNetToolWindowParam(
   IAgUiPlugin Plugin,
   IAgUiPluginWindowCreateParameters CreateParameters
);
[Unmanaged C++]
public: HRESULT CreateNetToolWindowParam(
   IAgUiPlugin * Plugin,
   IAgUiPluginWindowCreateParameters * CreateParameters,
   IAgUiWindow ** ReturnValue
);

Parameters

Plugin
The plugin that creates the window.
CreateParameters
Contains information about the assembly path, user control type name, window position, etc.

Return Type

A new window

Example

Create a custom window using embedded .NET user controlCopy Code
// IAgUiPluginSite site; 
 
IAgUiPluginWindowSite windowSite = site as IAgUiPluginWindowSite; 
 
IAgUiPluginWindowCreateParameters @params = windowSite.CreateParameters(); 
@params.AllowMultiple = false
@params.AssemblyPath = this.GetType().Assembly.Location; 
@params.UserControlFullName = typeof(CustomUserInterface).FullName; 
@params.Caption = "Basic User Interface"
@params.DockStyle = AgEDockStyle.eDockStyleDockedBottom; 
@params.Height = 200
IAgUiWindow newWindow = windowSite.CreateNetToolWindowParam(this, @params); 

See Also

© 2019 Analytical Graphics, Inc. All Rights Reserved.