Skybound Rebar

RebarBand.ClientRectangleChanged Event

Occurs when the value of the ClientRectangle property is changed.

[Visual Basic]
Public Event ClientRectangleChanged As EventHandler
[C#]
public event EventHandler ClientRectangleChanged;

Remarks

This event notifies you any time the client rectangle of the band is changed, either through code, or as the user is dragging bands, in real-time.

Example

This example handles the ClientRectangleChanged event of a rebar band and dynamically sets the caption text of the form to the value of the ClientRectangle property when the size of the band changes.

private void rebarBand1_ClientRectangleChanged(object sender, System.EventArgs e)
{
    this.Text = (sender as RebarBand).ClientRectangle.ToString();
}
            

See Also

RebarBand Class | Skybound.Rebar Namespace