[Overview][Types][Classes][Index] | Reference for unit 'RubberBand' (#lcl)

# TCustomRubberBand

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Base class which implements a rubber-band selection.

## Declaration

Source position: rubberband.pas line 37

`type TCustomRubberBand = class(TWinControl)`
`protected`
`class procedure WSRegisterClass; override;` |  | Registers this component class with the current WidgetSet.
`public`
`constructor Create(); override;` |  | Constructor for the class instance.
`property Shape: TRubberBandShape; [rw]` |  | The Shape of the rubber band device: a line or a rectangle around the selection.
`end;`

## Inheritance

`TCustomRubberBand` |  | Base class which implements a rubber-band selection.
`TWinControl` |  | Implements a windowed control which can contain other child controls.
`TControl` |  | The base class for visible controls.
`TLCLComponent` |  | The base class for LCL components which have an associated widget.
`TComponent`
?
`TObject`

## Description

TCustomRubberBand is a TWinControl descendant which implements a control used to draw rubber-band selections in the Lazarus Component Library (LCL). TCustomRubberBand is used to provide support for selection shape maps used in widgetset classes, especially widgetset design-time classes.

Set the value in the Shape property to control the appearance for the rubber-band selection drawn for the target platform.