ComponentOne List 8.0 for ActiveX
SplitContaining Method (TDBCombo)

 

TDBCombo Reference> TDBCombo Methods> SplitContaining Method (TDBCombo)

SplitContaining Method (TDBCombo)

The SplitContaining method returns the Index value of the split containing the specified coordinate pair.

Syntax

object.SplitContaining(x, y)

Arguments

x and y are singles that define a coordinate pair in twips.

Return Value

An integer corresponding to the index of the split beneath the specified coordinate pair.

Remarks

Method applies to TDBList and TDBCombo controls.

This value ranges from 0 to Splits.Count - 1.

This method is useful when working with mouse and drag events when you are trying to determine where the user clicked or dropped another control in terms of a control column.

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

Note: You must convert the x and y arguments 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