Skybound Rebar

RebarBandArea Enumeration

Specifies the area of a rebar band.

[Visual Basic]
Public Enum RebarBandArea
[C#]
public enum RebarBandArea

Remarks

This enumeration is used as the return value type of the GetAreaAtPoint property. Each value specifies an area of a rebar band.

Example

This example handles the MouseMove event of a Rebar control. When the mouse is moved over the Rebar control, the status bar text is set the the name of the area over which the mouse is positioned. This example assumes you have a Rebar control named "rebar" and a StatusBar named "statusBar" on a form.

private void rebar_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
    RebarBand band = rebar.GetBandAtPoint(new Point(e.X, e.Y));
    if (band != null)
    {
        RebarBandArea area = band.GetAreaAtPoint(new Point(e.X, e.Y));
        statusBar.Text = area.ToString();
    }
}
            

Members

Member Name Description
NoneThe tested point is not in the band.
SizeGripThe tested point is over the size grip.
ImageThe tested point is over the image.
TextThe tested point is over the text.
ClientThe tested point is over the client area of the band.
BackgroundThe tested point is over the background of the band.
ChevronThe tested point is over the chevron of the band.

Requirements

Namespace: Skybound.Rebar

Assembly: Skybound.Rebar (in Skybound.Rebar.dll)

See Also

Skybound.Rebar Namespace