Computes client coordinates into document coordinates which are in twips relative to the top-left corner of the whole document.

Introduced: X15.

ClientToDocument(System.Drawing.Point)

public System.Drawing.Point ClientToDocument(System.Drawing.Point point);

ClientToDocument(System.Drawing.Rectangle)

public System.Drawing.Rectangle ClientToDocument(System.Drawing.Rectangle rectangle);

Parameters

Parameter Description
point Specifies a client point which document coordinates are computed.
rectangle Specifies a client rectangle which document coordinates are computed.

Return Value

The return value specifies the computed document point or rectangle.