[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Gets the header section at the position specified in P.
Source position: comctrls.pp line 4089
public function TCustomHeaderControl.GetSectionAt( |
P: TPoint |
):Integer; |
P |
|
TPoint instance with the coordinates examined in the method. |
Ordinal position in Sections for the header section.
GetSectionAt is an Integer function used to get the position for the header section found at the coordinates in P.
GetSectionAt iterates over the THeaderSection instances in Sections to find a matching collection item. A match is found when the X- axis coordinate in P is within the Left and Right values for the header section.
The return value contains the ordinal position in Sections where the header section is stored, or -1 if a header section was not found for the coordinates.
Version 4.0 | Generated 2025-05-03 | Home |