hoTools.Find.FindAndReplace.FindNext C# (CSharp) Method

FindNext() public method

public FindNext ( ) : void
return void
        public void FindNext()
        {
            if (_l_items.Count == 0)
            {
                _index = -1;
                MessageBox.Show("No found element", String.Format("{0} elements found", _l_items.Count));
                return;
            }
            _index = _index + 1;
            if (_index >= _l_items.Count)
            {
                _index = _l_items.Count - 1;
                MessageBox.Show("Last element found", String.Format("{0} elements found", _l_items.Count));
            }
        }
        #endregion

Usage Example

コード例 #1
0
 private void btnFindNext_Click(object sender, EventArgs e)
 {
     if (_fr == null)
     {
         MessageBox.Show("Start search with 'Find'");
         return;
     }
     _fr.FindNext();
     _fr.LocateCurrentElement();
     txtStatus.Text = _fr.ItemShortDescription();
 }
All Usage Examples Of hoTools.Find.FindAndReplace::FindNext