Home Cooker Classes Others Rice CookerGX
Classes  >  browser  >  PointToClient(int,int)
browser class : PointToClient(int,int) method

Description

Converts the screen coordinates to client coordinates on the web browser.

Syntax

browserInstance.PointToClient(int x, int y)

Arguments

ClassNameDescription
intxx-coordinate of the screen coordinates.
intyy-coordinate of the screen coordinates.

Return value

None

Sample code

//b is a instance of browser type.

int x = 100;

int y = 100;

b.PointToClient(x, y);//The individual conversion values are stored in the arguments after the execution.

Notes

It's a wrapper of the System.Windows.Forms.WebBrowser.PointToClient(Point).

The screen coordinates(in pixels) that is passed by the arguments will be converted to client coordinates(in pixels) on the webbrowser.

The return value which is converted will be stored in the argument.

Links for reference

Copyright © Rice All rights reserved.