IMetaAttributeBreadcrumbItem.SetSelection

Syntax

SetSelection(Value: IDimSelection);

Parameters

Value - selection to be set.

Description

The SetSelection method sets the time series selection based on the attribute, which this element corresponds to.

Example

Executing the example requires a form, a button on this form and the MetaAttributesBreadcrumb component named MetaAttributesBreadcrumb1. The MetaAttributesBreadcrumb1 component is linked to the time series database.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Item: IMetaAttributeBreadcrumbItem;

Sel: IDimSelection;

Begin

Item := MetaAttributesBreadcrumb1.Items.Item(0) As IMetaAttributeBreadcrumbItem;

Sel := Item.GetSelection;

Sel.DeselectAll;

Sel.SelectElement(0, False);

Sel.SelectElement(1, False);

Sel.SelectElement(2, False);

Item.SetSelection(Sel);

End Sub Button1OnClick;

After executing the example, on clicking the button the elements selection based on the attribute, that the first element of the MetaAttributesBreadcrumb1 component corresponds to, is changed. The first three elements are selected by this attribute.

See also:

IMetaAttributeBreadcrumbItem