←Select platform

RenderResults Property

Summary

Indicates whether to add the results of this Find Text operation to the list of rendered Find Text results.

Syntax
C#
VB
C++
public bool RenderResults { get; set; } 
Public Property RenderResults() As Boolean 
   Get 
   Set 
public:  
   property bool RenderResults 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true to render the results of the Find Text operation into the DocumentViewer.View; otherwise, false. The default value is true.

Remarks

If RenderResults is true, the results of DocumentViewerText.Find will be rendered on the page, as well the results of any previous DocumentViewerText.Find calls since the last time DocumentViewerText.ClearRenderedFoundText was called. This allows multiple separate Find Text operations to highlight different areas of the document, or to achieve more detailed control over search areas by combining the results of several searches with different values for BeginPosition and EndPosition.

In most cases, it is useful to call DocumentViewerText.ClearRenderedFoundText before each call to DocumentViewerText.Find. The filling of the found text can be controlled from DocumentViewerText.FoundTextBrush.

The first result (in order) can also be selected with SelectFirstResult. To control whether a single match or all matches are returned, use FindAll.

For more information, refer to DocumentViewerText.Find.

History

19.0.0.49
Added
Example

For an example, refer to DocumentViewerText.Find.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Viewer.WinForms Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.