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






Gets or sets if the CollapsingGroupPanel is collapsed or expanded.

Syntax

Visual Basic (Declaration) 
Public Property Collapsed As Boolean
Visual Basic (Usage)Copy Code
Dim instance As CollapsingGroupPanel
Dim value As Boolean
 
instance.Collapsed = value
 
value = instance.Collapsed
C# 
public bool Collapsed {get; set;}
Delphi 
public read-write property Collapsed: Boolean; 
JScript 
public function get,set Collapsed : boolean
Managed Extensions for C++ 
public: __property bool get_Collapsed();
public: __property void set_Collapsed( 
   bool value
);
C++/CLI 
public:
property bool Collapsed {
   bool get();
   void set (bool value);
}

Return Value

A System.Boolean value, this property determines if the CollapsingGroupPanel is collapsed or expanded. If Collapsed is true, then the CollapsingGroupPanel is collapsed; otherwise Collapsed is false and the CollapsingGroupPanel is expanded. The default value is false;

Remarks

To collapse a CollapsingGroupPanel set Collapsed to true or call the Collapse method. To expand a CollapsingGroupPanel set Collapsed to false or call the Expand method.

When a CollapsingGroupPanel is collapsed only the header and possibly footer are displayed. The ShowFooterWhenCollapsed property specifies if the footer should be displayed when the CollapsingGroupPanel is collapsed.

When a CollapsingGroupPanel collapses the IsCollapsing and HasCollapsed events are raised. When a CollapsingGroupPanel expands the IsExpanding and HasExpanded events are raised.

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