public void ResetSearchState(int tabIndex, int textStartPos, int selectionLength) { _searchState = new TextSearchState { TabIndex = tabIndex, StartPosUp = textStartPos, StartPosDown = textStartPos + selectionLength, InitialTabIndex = tabIndex, InitialStartPos = textStartPos, TabCount = _tabPageDataCollection.TabPageDictionary.Count }; }
public TabSearchEngine(TabPageDataCollection tabPageDataCollection, int textStartIndex = 0) { _searchState = new TextSearchState(); _tabPageDataCollection = tabPageDataCollection; ResetSearchState(_tabPageDataCollection.ActiveTabIndex, textStartIndex, 0); }