Error processing SSI file
LEADTOOLS Leadtools.Documents.UI (Leadtools.Documents.UI assembly)

Show in webframe

SelectText Method






location and size of the area to check. This is in pixels and must be in control (client) coordinates, such as directly from a mouse event.
Mode to use for the selection.
Selects the text that intersect with a specified area.
Syntax
public void SelectText( 
   LeadRect area,
   DocumentViewerSelectTextMode mode
)
'Declaration
 
Public Sub SelectText( _
   ByVal area As LeadRect, _
   ByVal mode As DocumentViewerSelectTextMode _
) 
'Usage
 
Dim instance As DocumentViewerText
Dim area As LeadRect
Dim mode As DocumentViewerSelectTextMode
 
instance.SelectText(area, mode)
public:
void SelectText( 
   LeadRect area,
   DocumentViewerSelectTextMode mode
) 

Parameters

area
location and size of the area to check. This is in pixels and must be in control (client) coordinates, such as directly from a mouse event.
mode
Mode to use for the selection.
Remarks

This method selects text from all the pages that currently intersects with area. When this method returns, the new selected text (if any) can be obtained by GetSelectedTextItems (or GetSelectedText as a simple string).

ClearSelection is called if area is an empty rectangle or if none of the text intersects with the rectangle.

This method fires Operation with DocumentViewerOperation.TextSelectionChanged and DocumentViewerOperation.PageTextSelectionChanged if the result of the operation changes the state of text selection.

If RenderSelection is true, then the selected text will be highlighted on the view ImageViewer object automatically.

If the text of any of the pages that is checked is not obtained yet, then the value of AutoGetText will be used to determine whether DocumentPage.GetText is called automatically. Therefore, this method might experience a delay while the text is parsed from the document in this mode.

Example

For an example, refer to DocumentViewerText.

Requirements

Target Platforms

See Also

Reference

DocumentViewerText Class
DocumentViewerText Members

Error processing SSI file
Leadtools.Documents.UI requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features