Vcl.DBGrids.TColumn.Depth

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function  Depth: Integer;

C++

int __fastcall Depth();

Properties

Type Visibility Source Unit Parent
function public
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TColumn

Description

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

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.

See Also