Skybound Rebar

Rebar.GetBandAtPoint Method 

Retrieves the band that is located at the specified coordinates.

[Visual Basic]
Public Function GetBandAtPoint( _
   ByVal pt As Point _
) As RebarBand
[C#]
public RebarBand GetBandAtPoint(
   Point pt
);

Parameters

pt
A Point contains the coordinates where you want to look for a control. Coordinates are expressed relative to the upper-left corner of the rebar's client area.

Return Value

A RebarBand that represents the band that is located at the specified point.

Remarks

If there is no band at the specified point, the GetBandAtPoint method returns a null reference (Nothing in Visual Basic).

See Also

Rebar Class | Skybound.Rebar Namespace