ComponentOne List 8.0 for ActiveX
RowContaining Method (TDBCombo)

 

TDBCombo Reference> TDBCombo Methods> RowContaining Method (TDBCombo)

RowContaining Method (TDBCombo)

The RowContaining method returns the zero-based index of the display row containing the specified coordinate.

Syntax

object.RowContaining(coordinate)

Arguments

coordinate is a single that defines a vertical coordinate (Y value) in twips.

Return Value

An integer corresponding to the display row beneath the specified Y coordinate.

Remarks

Method applies to TDBList and TDBCombo controls.

This value ranges from 0 to VisibleRows - 1.

When handling mouse and drag events, this method is useful when you need to determine where the user clicked or dropped another control in terms of a control row.

If coordinate is outside of the control's data area, this method returns -1.

Note: You must convert the coordinate argument to twips, even if the container's ScaleMode (Visual Basic) setting specifies a different unit of measurement.

See Also

TDBList and TDBCombo Controls

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback