IWxMetabaseObject.ShowDependents

Syntax

ShowDependents(View: IWxView; [Recursive: Boolean = false]);

Parameters

View. The parameter determines the workspace, which displays selection points of objects' shapes, which depend on this object.

Recursive. The parameter determines whether the whole tree of objects is displayed, which depend on this object. The parameter is set to False by default, the workspace displays only objects of the first level of hierarchy.

Description

The ShowDependents method displays the objects, which depend on this object on the workspace.

Comments

The objects, which depend on this object, are displayed on the workspace where the object itself is also displayed. Selection points of objects' shapes are displayed on the workspace passed by the View parameter.

Example

Executing the example requires an object of the Workspace type. Create a form, add the Button1 button to it, the WorkspaceBox component named WorkspaceBox1, the UiWorkspaceObject component named UiWorkspaceObject1, specify the workspace as an object of the UiWorkspaceObject1 component, the UiWorkspaceObject1 component as a data source of the WorkspaceBox1 component and the True value of the Active property of the UiWorkspaceObject1 component. Add the CheckBox component named CheckBox1. Add links to the Collections, Metabase and Workspace system assemblies.

Class OBJ48413Form: Form
    UiWorkspaceObject1: UiWorkspaceObject;
    WorkspaceBox1: WorkspaceBox;
    Button1: Button;
    CheckBox1: CheckBox;

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Begin
        (WorkspaceBox1.View.Workspace.Shapes.Item(3).Extension As IWxMetabaseObject).ShowDependents(WorkspaceBox1.View, CheckBox1.Checked);
    End Sub Button1OnClick;

End Class OBJ48413Form;

When the CheckBox1 checkbox is selected, on clicking the Button1 button the WorkspaceBox1 component area displays the whole tree of objects, which depend on the object with the 3 index,; when the CheckBox1 checkbox is deselected, objects of the first level of hierarchy are displayed.

See also:

IWxMetabaseObject