Link Property (SysLink Controls)

Applies to TestComplete 14.40, last modified on April 22, 2021

Description

The Link property returns the Win32SysLinkItem object which provides scripting access to the link of the given Win32SysLinkObj control. To obtain the total number of links in the control, use the LinkCount property.

Declaration

TestObj.Link(Index)

Read-Only Property A Win32SysLinkItem object
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Index [in]    Required    Integer    

Applies To

The property is applied to the following object:

View Mode

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Parameters

The property has the following parameter:

Index

The index of the desired link. The index is zero-based: the first link has index 0, the second - 1 and so on. Index of the last link is LinkCount - 1.

Property Value

A Win32SysLinkItem object which corresponds to the desired link.

Remarks

If you use Python or DelphiScript, you should enclose the parameter of the Link property in square brackets: Link[Index].

Example

To view an example that demonstrates how to use the Link property, see Obtaining SysLink Link Properties.

See Also

Clicking a Link in SysLink Controls
ClickLink Action (SysLink Controls)
LinkCount Property (SysLink Controls)
wText Property (SysLink Controls)
Click Action (SysLinkItem Objects)

Highlight search results