start Property

Summary

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

Syntax

JavaScript Syntax
Object.defineProperty(DocumentViewerFindText.prototype, 'start', 
	get: function(), 
	set: function(value) 
) 
TypeScript Syntax
start: DocumentViewerFindTextStart; 

Property Value

A number 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 begin 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 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.

Though Start may be a value other than BeginPosition, the search may still 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 - DocumentViewerFindTextStart.ManualPosition is used and ManualStartPosition is null

Otherwise, Start is likely to cause two internal searches:

  1. Search from start to EndPosition.

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

Leadtools.Documents.UI Assembly