Utils.Point Property

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

The Utils.Point property lets you get an empty Point object, which is intended to represent a pixel on the screen.

Declaration

Utils.Point

Read-Only Property A Point object

Applies To

The property is applied to the following object:

Property Value

A Point object that currently does not correspond to any pixel.

Example

The following code snippet demonstrates how to create an empty Point object and specify its properties:

JavaScript, JScript

function Test()
{
  var Point, X, Y;
  …
  // Creates a new Point object
  Point = Utils.Point;
  // Sets Point’s properties
  Point.X = X;
  Point.Y = Y;
  …
}

Python

def Test():
  # ...
  # Creates a new Point object
  Point = Utils.Point
  # Sets Point's properties
  Point.X = X
  Point.Y = Y
  # ...

VBScript

Sub Test
  Dim Point
  …
  ' Creates a new Point object
  Set Point = Utils.Point
  ' Sets Point’s properties
  Point.X = X
  Point.Y = Y
  …
End Sub

DelphiScript

procedure Test();
var Point, X, Y;
begin
  …
  // Creates a new Point object
  Point := Utils.Point;
  // Sets Point’s properties
  Point.X := X;
  Point.Y := Y;
  …
end;

C++Script, C#Script

function Test()
{
  var Point, X, Y;
  …
  // Creates a new Point object
  Point = Utils["Point"];
  // Sets Point’s properties
  Point["X"] = X;
  Point["Y"] = Y;
  …
}

See Also

Point Object

Highlight search results