IGxPoint.IsEmpty

Syntax

IsEmpty: Boolean;

Description

The IsEmpty property returns True if the point has 0.0 coordinates.

Example

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

Var

PointF, PointL: IGxPoint;

Link: IWxLink;

s, s1: String;

Begin

Link:=UiWorkspace1.WxWorkspace.CreateLink;

PointF:=Link.FirstPoint.ToPoint;

PointL:=Link.LastPoint.ToPoint;

If PointF.IsEmpty Then

s:="Yes";

Else

s:="No";

End If;

If PointL.IsEmpty Then

s1:="Yes";

Else

s1:="No";

End If;

End Sub Button1OnClick;

After executing the example clicking the button creates a connecting line in the workspace, and the "s" and "s1" variables contain Yes if the start and the end points have the 0.0 coordinates respectively.

See also:

IGxPoint