IMetabaseListView.CheckedObjects

Syntax

CheckedObjects: IMetabaseObjectDescriptors;

Description

The CheckedObjects property returns the collection of descriptions for objects, which checkboxes are selected in the component.

Comments

The property is relevant if the Checkboxes property is set to True for the component.

Example

Executing the example requires a form with the button named Button1 on it and the MetabaseListView component named MetabaseListView1. The Checkboxes property of the MetabaseListView1 component is set to True and any repository folder is selected in the Root property. Add a link to the Metabase system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Descs: IMetabaseObjectDescriptors;
    Desc: IMetabaseObjectDescriptor;
Begin
    Descs := MetabaseListView1.CheckedObjects;
    
For Each Desc In Descs Do
        Debug.WriteLine(Desc.Name + 
" (" + Desc.Id + ')');
    
End For;
End Sub Button1OnClick;

Clicking the button displays information about object names and identifiers, for which checkboxes are selected in the MetabaseListView1 component in the development environment console.

See also:

IMetabaseListView