←Select platform

Start Property

Summary

Indicates where to start finding text within the bounds of a Find Text operation.

Syntax
C#
VB
C++
public DocumentViewerFindTextStart Start { get; set; } 
Public Property Start() As DocumentViewerFindTextStart 
   Get 
   Set 
public:  
   property DocumentViewerFindTextStart^ Start 
   { 
      DocumentViewerFindTextStart^ get() 
      void set(DocumentViewerFindTextStart^ value) 
   } 

Property Value

An enum value from DocumentViewerFindTextStart that indicates where the text search should start. The default value is DocumentViewerFindTextStart.BeginPosition, which creates one search starting from BeginPosition and stopping at EndPosition.

Remarks

BeginPosition and EndPosition set the beginning and end of the search bounds and the direction of the search, but Start provides the ability to start finding text at a position other than the BeginPosition.

The DocumentViewerFindTextStart enum allows the operation to start inside or after the selection bounds (which is useful when paired with SelectFirstResult) or to start at a unique position with ManualStartPosition.

Although Start can be a value other than BeginPosition, the search can still be effectively run from BeginPosition to EndPosition if: - DocumentViewerFindTextStart.InSelection or DocumentViewerFindTextStart.AfterSelection is used and there is no selected text or the selected text is before the BeginPosition

Otherwise, Start is likely to cause two internal searches:

  1. Search from start to EndPosition.
  2. If the starting point from (1) was not BeginPosition, and FindAll or Loop is true, search from BeginPosition to start – 1.

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 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