Skybound Rebar

RebarBandRenderer.GetBackgroundRectangle Method 

Returns the bounds of the background for the band (the bounding rectangle for the entire band, less the size of the border).

[Visual Basic]
Public Function GetBackgroundRectangle() As Rectangle
[C#]
public Rectangle GetBackgroundRectangle();

Return Value

A Rectangle that represents the bounding rectangle of the background area.

Remarks

This method returns the bounding rectangle of the background of the band, which is the bounds of the band reduced by 1 pixel on all sides to account for the border.

Note that, for a Rebar control, the borders are drawn by the Rebar itself and not by each individual band. Borders can be shown or hidden by setting the BordersVisible property of the Rebar control. However, the visibility of borders does not impact how bands are drawn (there is simply more space between bands when the borders are not visible).

See Also

RebarBandRenderer Class | Skybound.Rebar.Rendering Namespace