←Select platform

HasSelectedText Method

Summary

Checks whether the specified page or all pages in the document have text that is currently selected.

Syntax
C#
VB
C++
public bool HasSelectedText( 
   int pageNumber 
) 
Public Function HasSelectedText( 
   ByVal pageNumber As Integer 
) As Boolean 
public:  
   bool HasSelectedText( 
      int pageNumber 
   ) 

Parameters

pageNumber

Page number to use. If this value is 0, then the text of all pages in the document will be used.

Return Value

true if the page or document specified has text that is currently selected; otherwise, false.

Remarks

If the text of the specified page(s) was not previously obtained, then this method will return false.

Example

For an example, refer to SelectText.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Viewer.WinForms Assembly