AVEVA CAF API Documenation

Aveva.ApplicationFramework.Presentation Namespace > RootToolsCollection Class > AddContainerTool Method : AddContainerTool(String,String,Control,String,Boolean) Method
Unique key in the RootToolsCollection.
Caption for the tool.
Control assigned to the tool.
CommandID for the tool.
true to from XML.
AddContainerTool(String,String,Control,String,Boolean) Method
Create and add a new ContainerTool object to the RootToolsCollection.
Syntax
public abstract ContainerTool AddContainerTool( 
   string key,
   string text,
   Control control,
   string commandId,
   bool fromXml
)
public:
abstract ContainerTool^ AddContainerTool( 
   String^ key,
   String^ text,
   Control^ control,
   String^ commandId,
   bool fromXml
) 

Parameters

key
Unique key in the RootToolsCollection.
text
Caption for the tool.
control
Control assigned to the tool.
commandId
CommandID for the tool.
fromXml
true to from XML.

Return Value

A ContainerTool.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also