Skybound Rebar

RebarBand.HasSizeGrip Property

Gets or sets whether the band has a size grip that allows it to be moved and resized by the user.

[Visual Basic]
Public Property HasSizeGrip As Boolean
[C#]
public bool HasSizeGrip {get; set;}

Property Value

true if the band has a size grip; otherwise, false.

Remarks

The size grip allows the user to resize and reposition the band at runtime. Even if a band has no size grip, its size can be changed if a band beside it has a size grip and is moved. This setting is perhaps most useful when set to the same value for all the bands in a rebar -- effectively locking or unlocking the entire rebar control.

In left-to-right layouts, the size grip appears at the left edge of the band. In right-to-left layouts, it appears at the right edge.

Example

This example locks and unlocks an entire Rebar control by showing or hiding the size grip for all bands in the rebar.

private void LockRebar(Rebar rebar, bool locked)
{
    foreach (RebarBand band in rebar.Bands)
        band.HasSizeGrip = !locked;
}
            

See Also

RebarBand Class | Skybound.Rebar Namespace