Bagikan melalui


IPanel.Add Method (Object, String, Boolean, Boolean)

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

Namespace: Microsoft.Uii.Desktop.UI.Controls
Assembly: Microsoft.Uii.Desktop.UI.Controls (in Microsoft.Uii.Desktop.UI.Controls.dll)

Usage

'Usage
Dim instance As IPanel
Dim child As Object
Dim initializationXml As String
Dim useToolbar As Boolean
Dim closeButton As Boolean
Dim returnValue As Object

returnValue = instance.Add(child, initializationXml, useToolbar, closeButton)

Syntax

'Declaration
Function Add ( _
    child As Object, _
    initializationXml As String, _
    useToolbar As Boolean, _
    closeButton As Boolean _
) As Object
Object Add (
    Object child,
    string initializationXml,
    bool useToolbar,
    bool closeButton
)
Object^ Add (
    Object^ child, 
    String^ initializationXml, 
    bool useToolbar, 
    bool closeButton
)
Object Add (
    Object child, 
    String initializationXml, 
    boolean useToolbar, 
    boolean closeButton
)
function Add (
    child : Object, 
    initializationXml : String, 
    useToolbar : boolean, 
    closeButton : boolean
) : Object

Parameters

  • child
    Specifies the control or hosted application that is to be added to the panel.
  • initializationXml
    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
    true if a toolbar is used; false if the XML string should be parsed to see if toolbar is used.
  • closeButton
    True if a close button is present, false otherwise.

Return Value

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

IPanel Interface
IPanel Members
Microsoft.Uii.Desktop.UI.Controls Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.