IGxPointF.IsEmpty

Syntax

IsEmpty: Boolean;

Description

The IsEmpty property determines whether coordinates of the real point are zero ones.

Comments

The IsEmpty property is set to True if the real point have coordinates 0, 0.

Example

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

Var

PointF, PointL: IGxPointF;

Link: IWxLink;

s, s1: String;

Begin

Link:=UiWorkspace1.WxWorkspace.CreateLink;

PointF:=Link.FirstPoint;

PointL:=Link.LastPoint;

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 on the workspace creates a connecting line. The "s" and "s1" variables contain Yes if the start and end points are in the point with coordinates 0, 0.

See also:

IGxPointF