IMetabaseTreeCombo.Filters

Syntax

Filters: IMetabaseDialogFilters;

Description

The Filters property returns the collection of filters that are used to filter objects displayed in the component.

Example

Executing the example requires a form with the Button1 button and the MetabaseTreeCombo component named MetabaseTreeCombo1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Filter: IMetabaseDialogClassFilter;

Begin

Filter := New MetabaseDialogClassFilter.Create;

Filter.ObjectClass := MetabaseObjectClass.KE_CLASS_TABLE;

MetabaseTreeCombo1.Filters.AddFilter(Filter);

End Sub Button1OnClick;

After executing the example, on clicking the button in the repository tree of the MetabaseTreeCombo1 component only the repository tables are displayed.

See also:

IMetabaseTreeCombo