FoxitPDFSDKforWeb  8.2.0
Foxit PDF SDK for Web
IFloatingTooltip Class Reference

An abstract class used to implement floating box components displayed after text selection or other operations. More...

Inherits Disposable.

Public Member Functions

 destroy ()
 Override this method to implement the destruction logic of tooltip.
 
 disable ()
 Override this method to implement the logical to make tooltip unusable.
 
 enable ()
 Override this method to implement the logical to make tooltip usable.
 
 hide ()
 Override this method to implement to hide the tooltip.
 
 showAt (x, y, text, rects)
 Override this method to implement the logical to display the tooltip at specified position which relative to the top left of the currently operatering PDF page. More...
 

Detailed Description

An abstract class used to implement floating box components displayed after text selection or other operations.

See also
IViewerUI.createTextSelectionTooltip

Member Function Documentation

◆ showAt()

IFloatingTooltip::showAt (   x,
  y,
  text,
  rects 
)
inline

Override this method to implement the logical to display the tooltip at specified position which relative to the top left of the currently operatering PDF page.

Parameters
pageX{number} - The x-axis coordinate relative to the top left corner of the page in pixel
pageY{number} - The y-axis coordinate relative to the top left corner of the page in pixel
text{string} - selected text (This parameter is only available when selecting text operation)
{Array<{left,right,top,bottom}>}rects - The selected text rects, relatives to the left top corner of the page in pixel. (This parameter is only available when selecting text operation)

Foxit Software Corporation Logo
@2021 Foxit Software Incorporated. All rights reserved.