←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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Documents.UI.WinForms Assembly