ICreate.Controls.Bars Send comments on this topic.
SetInvisible Method
See Also 
ICreate.Controls.Bars Namespace > CollapsingGroupPanel Class : SetInvisible Method






control
A reference to a Control, the parameter specifies the control whose visibility is to be set.
invisible
A System.Boolean value, this parameter specifies if the specified control is invisible or not. If invisible is true then the control is invisible and will not be shown when the CollapsingGroupPanel expands; otherwise invisible is false and the control is shown when the CollapsingGroupPanel expands.
Sets the visibility of the specified Control.

Syntax

Visual Basic (Declaration) 
Public Sub SetInvisible( _
   ByVal control As Control, _
   ByVal invisible As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As CollapsingGroupPanel
Dim control As Control
Dim invisible As Boolean
 
instance.SetInvisible(control, invisible)
C# 
public void SetInvisible( 
   Control control,
   bool invisible
)
Delphi 
public procedure SetInvisible( 
    control: Control;
    invisible: Boolean
); 
JScript 
public function SetInvisible( 
   control : Control,
   invisible : boolean
);
Managed Extensions for C++ 
public: void SetInvisible( 
   Control control,
   bool invisible
) 
C++/CLI 
public:
void SetInvisible( 
   Control control,
   bool invisible
) 

Parameters

control
A reference to a Control, the parameter specifies the control whose visibility is to be set.
invisible
A System.Boolean value, this parameter specifies if the specified control is invisible or not. If invisible is true then the control is invisible and will not be shown when the CollapsingGroupPanel expands; otherwise invisible is false and the control is shown when the CollapsingGroupPanel expands.

Remarks

The CollapsingGroupPanel controls the Visible property of its child controls. The child controls are hidden when the panel collapses, and made visible when it expands. Similarly if a child control intersects the footer or footer line then it is hidden. When the panel size changes and the control and footer or footer line no longer interset then the child control is made visible. The provided property Invisible override this behaviour. If a child control is made invisible then it will not be shown when the panel expands or when it no longer intersects the footer or footer line. The GetInvisible and SetInvisible methods implement the Invisible provided property.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also