Sign in Join
FPDoc Onlineexperiment

TCoolBands.FindBand function

Member of TCoolBandspublicIn unit ComCtrls

Gets the collection item which contains the specified control.

Declaration

pascal
function FindBand(AControl: TControl): TCoolBand

Arguments

AControl

Control to locate in the collection items.

Function result

TCoolBand instance with the specified control, or Nil when not found.

Description

FindBand iterates over the values in Items to locate the TCoolBand instance which contains the control specified in AControl. The return value is the TCoolBand instance in the collection, or Nil if AControl is not used in one of the collection Items.

Use FindBandIndex to get the ordinal position in the collection for the collection item which contains a specified control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.