getCandidateWindowClientRect
TOC
Collapse the table of content
Expand the table of content

getCandidateWindowClientRect method

Returns a ClientRect object with candidate window coordinate space information (if the Input Method Editor (IME) candidate window is visible).

IE11

 

Syntax

var result = MSInputMethodContext.getCandidateWindowClientRect();

Parameters

This method has no parameters.

Remarks

You can determine if the IME candidate window is visible with the isCandidateWindowVisible method.

When getCandidateWindowClientRect is first called, a new ClientRect object is created and its data members (bottom, top, left, right, width, height) are populated with client coordinate space information. The ClientRect object's data is only populated on-demand (the first call for the first handler of the current event). Multiple calls to this method will return the same ClientRect object.

This method is similar to that of getBoundingClientRect, where client coordinates are in document pixels and have an origin at the upper-left corner of the client area.

See also

MSInputMethodContext
Measuring Element Dimension and Location with CSSOM

 

 

Show:
© 2016 Microsoft