Returns the top-right point of rectangle.

syntaxSyntax:
DlxRect.TopRight()

Return Value

The coordinates of the top-right corner of the rectangle. The coordinates are returned as a DlxPoint object.

Example

  Copy codeCopy code
var r = new DlxRect(10, 20, 80, 100);
DlxApp.Printf("x=%.2f, y=%.2f", r.TopRight().x, r.TopRight().y);

See also