Workspace.Hide Method

Hides the smart part and resets (sets to null) the ActiveSmartPart.

Namespace: Microsoft.Practices.CompositeUI.SmartParts
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
Public Sub Hide ( _
    smartPart As Object _
)
'Usage
Dim instance As Workspace(Of TSmartPart, TSmartPartInfo)
Dim smartPart As Object

instance.Hide(smartPart)
public void Hide (
    Object smartPart
)
public:
virtual void Hide (
    Object^ smartPart
) sealed
public final void Hide (
    Object smartPart
)
public final function Hide (
    smartPart : Object
)

Parameters

  • smartPart

Exceptions

Exception type Condition

ArgumentException

The smartPart was not previously shown in the workspace.

ArgumentException

The smartPart cannot be assigned to TSmartPart.

See Also

Reference

Workspace Class
Workspace Members
Microsoft.Practices.CompositeUI.SmartParts Namespace