MetabaseTreeCombo.OnIsEmptyFolder

Syntax

OnIsEmptyFolder(Sender: Object; Args: IMetabaseTreeNodeSpecialEventArgs);

Parameters

Sender. The parameter that returns the component that generated the event.

Args. The parameter that enables the user to determine event parameters.

Description

The OnIsEmptyFolder event is used to set whether a folder is empty.

Comments

If value of the IMetabaseTreeCombo.ShowEmptyFolders property is changed for the component, empty folders are hidden or shown. The OnIsEmptyFolder event is generated for each folder and for elements, which are set as folders in the MetabaseTreeCombo.OnIsFolderElem event. The IMetabaseTreeNodeSpecialEventArgs.Node property of the event argument can be used to get a folder, for which the current event is generated.

If empty folders are hidden (the IMetabaseTreeCombo.ShowEmptyFolders property was set to False), one can use the IMetabaseTreeNodeSpecialEventArgs.Special property of event argument to specify whether the IMetabaseTreeNodeSpecialEventArgs.Node folder is empty (the folder will be hidden in the tree) or non-empty (the folder will not be hide in the tree). If the IMetabaseTreeNodeSpecialEventArgs.Special property is set to True, the folder will be marked as empty; if the property is set to False, the folder will be marked as non-empty.

See also:

MetabaseTreeCombo