IMetabaseListView.CheckedObjects

Fore Syntax

CheckedObjects: IMetabaseObjectDescriptors;

Fore.NET Syntax

CheckedObjects: Prognoz.Platform.Interop.ExtCtrls.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.

Fore 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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Metabase;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Descs: IMetabaseObjectDescriptors;
    Desc: IMetabaseObjectDescriptor;
Begin
    Descs := MetabaseListViewNet1.CheckedObjects;
    
For Each Desc In Descs Do
        System.Diagnostics.Debug.WriteLine(Desc.Name + 
" (" + Desc.Id + ')');
    
End For;
End Sub;

See also:

IMetabaseListView