Filters: IMetabaseDialogFilters;
The Filters property returns a collection of filters used to filter objects displayed in the component.
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: