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

Introduced: X15.

DocumentToClient(System.Drawing.Point)

System.Drawing.Point DocumentToClient(System.Drawing.Point point);
Public Function DocumentToClient(point As System.Drawing.Point) As System.Drawing.Point

DocumentToClient(System.Drawing.Rectangle)

System.Drawing.Rectangle DocumentToClient(System.Drawing.Rectangle rectangle);
Public Function DocumentToClient(rectangle As System.Drawing.Rectangle) As System.Drawing.Rectangle

Parameters

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

Return Value

The return value specifies the computed client point or rectangle.

Further Reading

Learn more about the TXTextControl.TextControl.DocumentToClient Method in the Text Control Blog: