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


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


browserInstance.PointToScreen(int x, int y)


intxx-coordinate of the client coordinates.
intyy-coordinate of the client coordinates.

Return value


Sample code

//b is a instance of browser type.

int x = 100;

int y = 100;

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


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

The client coordinates(in pixels) on the web browser which is passed by the arguments will be converted to screen coordinates(in pixels).

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

Links for reference

Copyright © Rice All rights reserved.