IPanel.Add Method

Definition

Overloads

Add(Object, Boolean)

Adds a hosted application or a Windows Forms user control to the panel.

Add(Object, String, Boolean, Boolean)

Adds a hosted application or a Windows Forms user control to the panel.

Add(Object, Boolean)

Adds a hosted application or a Windows Forms user control to the panel.

public:
 System::Object ^ Add(System::Object ^ child, bool closeButton);
public object Add (object child, bool closeButton);
abstract member Add : obj * bool -> obj
Public Function Add (child As Object, closeButton As Boolean) As Object

Parameters

child
Object

The control or hosted application to add to the panel.

closeButton
Boolean

true if a close button is provided for closing dynamic hosted applications; false otherwise.

Returns

The tabpage from the TabControl if one is used or the DeckControl.

Remarks

If there are currently no hosted applications on this panel, add to DeckControl. Else, add to TabControl.

Applies to

Add(Object, String, Boolean, Boolean)

Adds a hosted application or a Windows Forms user control to the panel.

public:
 System::Object ^ Add(System::Object ^ child, System::String ^ initializationXml, bool useToolbar, bool closeButton);
public object Add (object child, string initializationXml, bool useToolbar, bool closeButton);
abstract member Add : obj * string * bool * bool -> obj
Public Function Add (child As Object, initializationXml As String, useToolbar As Boolean, closeButton As Boolean) As Object

Parameters

child
Object

Specifies the control or hosted application that is to be added to the panel.

initializationXml
String

Specifies the XML string for the hosted application that is being added. This is used to determine how an application will appear in the panel.

useToolbar
Boolean

true if a toolbar is used; false if the XML string should be parsed to see if toolbar is used.

closeButton
Boolean

True if a close button is present, false otherwise.

Returns

The tabpage from the TabControl if one is used or the DeckControl.

Remarks

If there are currently no hosted applications on this panel, add to DeckControl. Else, add to TabControl.

Applies to