Filters: IMetabaseDialogFilters;
The Filters property returns the collection of filters that are used to filter objects displayed in the component.
Executing the example requires a form with the Button1 button and the MetabaseTreeList component named MetabaseTreeList1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Filter: IMetabaseDialogClassFilter;
Begin
Filter := New MetabaseDialogClassFilter.Create;
Filter.ObjectClass := MetabaseObjectClass.KE_CLASS_TABLE;
MetabaseTreeList1.Filters.AddFilter(Filter);
End Sub Button1OnClick;
After the execution of the example, on clicking the button in the MetabaseTreeList1 component repository only the repository tables are displayed.
See also: