RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TColumn.Depth Method

Returns the position of the column in relation to any parent columns. A column with no parent column returns 0.

Pascal
function Depth: Integer;
C++
__fastcall int Depth();

If a column does not have any parent columns, Depth returns 0. Columns with parent columns return a number equal to the number of parents it has. For example, a parentless ADT field called Date has a Depth of 0. Its three child fields, Month, Day, and Year, each have a Depth of 1. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!