Table of Contents

Class Relation

This ILocator helps distinguish an IAIObject that may appear multiple times in the application by its relation with respect to other objects in the view.

Inheritance
Relation
Implements
ILocator
Namespace: HP.LFT.SDK.AI
Assembly: HP.LFT.SDK.dll
Syntax
public class Relation : ILocator

Constructors

Relation()

Constructs a new Relation that can be used to uniquely identify an IAIObject by its visual relation.

Declaration
public Relation()

Relation(RelationType, IAIObject)

Constructs a new Relation that can be used to uniquely identify an IAIObject by its visual relation.

Declaration
public Relation(RelationType relationType, IAIObject anchor)
Parameters
Type Name Description
RelationType relationType

The relation type with respect to the IAIObject.

IAIObject anchor

The IAIObject which has a visual relation with respect to the object to be identified.

Properties

Anchor

The IAIObject which has a visual relation with respect to the object to be identified.

Declaration
public IAIObject Anchor { get; set; }
Property Value
Type Description
IAIObject

RelationType

The relation type with respect to the IAIObject.

Declaration
public RelationType RelationType { get; set; }
Property Value
Type Description
RelationType

Methods

GetProperties()

Returns the inner properties of this property.

Declaration
public IDictionary<string, object> GetProperties()
Returns
Type Description
IDictionary<string, object>

Implements

ILocator