Udostępnij za pośrednictwem


IPanel.Add Method (Object, 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 closeButton As Boolean
Dim returnValue As Object

returnValue = instance.Add(child, closeButton)

Syntax

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

Parameters

  • child
    The control or hosted application to add to the panel.
  • closeButton
    true if a close button is provided for closing dynamic hosted applications; 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.