Object Model Reference for GUI Testing > Utility Objects > Add Method

VisualRelationsCollection Object

A 0-based collection of VisualRelation Object that together comprise the visual relation identifier element of a test object.

IMPORTANT

Methods and Properties

Method Add Adds a new VisualRelation Object to the collection.
Method Clone Creates a copy of the VisualRelationsCollection.
Count Returns the number of VisualRelation objects in the collection.
Item Returns the VisualRelation Object located in the specified position.
Remove Removes the VisualRelation Object located in the specified location from the collection.

Back to top

Add Method

Description

Adds a new VisualRelation Object to the collection.

Syntax

SetVRel = VRIColl.Add

Return Value

The created VisualRelation Object.


Back to top

Clone Method

Description

Creates a copy of the VisualRelationsCollection.

Syntax

SetVRIColl_Copy = VRIColl.Clone

Return Value

The new (copy of the) VisualRelationsCollection Object.


Back to top

Count Property

Description

The number of VisualRelation objects in the collection.

Syntax

VRIColl.Count

Return Value

Read-only. A number.


Back to top

Item Property

Description

Returns the VisualRelation Object located in the specified position.

Syntax

Set VRIObj = VRIColl.Item

Return Value

Read-only. A VisualRelation Object.


Back to top

Remove Method

Description

Removes the VisualRelation Object located in the specified location from the collection.

Syntax

VRIColl.Remove ItemIndex

Argument

Type

Description

ItemIndex

Number

The 0-based position of the VisualRelation object to remove.


Back to top

RemoveAll Method

Description

Removes all VisualRelation objects from the collection.

Syntax

VRIColl.RemoveAll


Back to top

See also: