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);
Public Function ClientToDocument(point As System.Drawing.Point) As System.Drawing.Point

ClientToDocument(System.Drawing.Rectangle)

public System.Drawing.Rectangle ClientToDocument(System.Drawing.Rectangle rectangle);
Public Function ClientToDocument(rectangle As System.Drawing.Rectangle) As System.Drawing.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.