ICreate.Controls.Bars Send comments on this topic.
CollapsingGroupPanelBodyBoundsChangedEventArgs Class
See Also  Members   Example 
ICreate.Controls.Bars Namespace : CollapsingGroupPanelBodyBoundsChangedEventArgs Class






Use to store the new value of the CollapsingGroupPanel BodyBounds property for the BondyBoundsChanged event.

Syntax

Visual Basic (Declaration) 
Public Class CollapsingGroupPanelBodyBoundsChangedEventArgs 
   Inherits EventArgs
Visual Basic (Usage)Copy Code
Dim instance As CollapsingGroupPanelBodyBoundsChangedEventArgs
C# 
public class CollapsingGroupPanelBodyBoundsChangedEventArgs : EventArgs 
Delphi 
public class CollapsingGroupPanelBodyBoundsChangedEventArgs = class(EventArgs)
JScript 
public class CollapsingGroupPanelBodyBoundsChangedEventArgs extends EventArgs
Managed Extensions for C++ 
public __gc class CollapsingGroupPanelBodyBoundsChangedEventArgs : public EventArgs 
C++/CLI 
public ref class CollapsingGroupPanelBodyBoundsChangedEventArgs : public EventArgs 

Example

This example shows how to use the BodyBoundsChanged event to ensure a Panel control coincides with the body of the CollapsingGroupPanel. This example assumes there is a CollapsingGroupPanel docked to fill its parent Form. The ContrainerControl property can also be used to ensure that a container control covers the body region of a CollapsingGroupPanel.
C#Copy Code
using System; 
using System.Drawing; 
using System.Windows.Forms; 
using ICreate.Controls.Bars; 
 
namespace ExamplesCollapsingGroupPanelCSharp 

    public partial class BodyBoundsChangedEventExample : Form 
    { 
        public BodyBoundsChangedEventExample() 
        { 
            InitializeComponent(); 
 
            bodyPanel = new Panel(); 
            bodyPanel.BackColor = Color.SkyBlue; 
            bodyPanel.Bounds = collapsingGroupPanel.BodyBounds; 
            collapsingGroupPanel.Controls.Add(bodyPanel); 
 
            collapsingGroupPanel.BodyBoundsChanged += new ICreate.Controls.Bars.CollapsingGroupPanelBodyBoundsChangedEventHandler(OnBodyBoundsChanged); 
        } 
 
        private void OnBodyBoundsChanged(object sender, CollapsingGroupPanelBodyBoundsChangedEventArgs args) 
        { 
            bodyPanel.Bounds = args.Bounds; 
        } 
 
        private Panel bodyPanel; 
    } 
}
Visual BasicCopy Code
Imports ICreate.Controls.Bars

Public Class BodyBoundsChangedEventExample

    Public Sub New()

        InitializeComponent()

        bodyPanel = New Panel()
        bodyPanel.BackColor = Color.SkyBlue
        bodyPanel.Bounds = CollapsingGroupPanel.BodyBounds
        CollapsingGroupPanel.Controls.Add(bodyPanel)

        AddHandler CollapsingGroupPanel.BodyBoundsChanged, AddressOf OnBodyBoundsChanged

    End Sub

    Private Sub OnBodyBoundsChanged(ByVal sender As Object, ByVal args As CollapsingGroupPanelBodyBoundsChangedEventArgs)
        bodyPanel.Bounds = args.Bounds
    End Sub

    Private bodyPanel As Panel

End Class

Remarks

The BodyBoundsChanged event ocurs when the BodyBounds changes.

Inheritance Hierarchy

System.Object
   System.EventArgs
      ICreate.Controls.Bars.CollapsingGroupPanelBodyBoundsChangedEventArgs

Requirements

Namespace: ICreate.Controls.Bars

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

Assembly: ICreate.Controls.Bars (in ICreate.Controls.Bars.dll)

See Also