Find and FindNext on EditControl

The Find() method returns an EditLocationRange however the FindNext() does not return an EditLocationRange, What is a good way to find and format all occurances within an editControl Regards, Marco Syncfusion.Windows.Forms.Edit.EditLocationRange elr = this.editControl1.Find("0", "Depth", false, false, true, false, false, false, true); while (elr != null) { editControl1.AddWaveLine(elr, "Wave Line Blue"); elr = this.editControl1.FindNext(); }

1 Reply

ME Marco Ensing January 19, 2004 11:25 PM UTC

The following will work Syncfusion.Windows.Forms.Edit.EditLocation el = new Syncfusion.Windows.Forms.Edit.EditLocation(); Syncfusion.Windows.Forms.Edit.EditLocationRange elr = this.editControl1.Find(el, "Depth", false, false, true, false, false, false, true); while (! elr.IsEmpty()) { editControl1.AddWaveLine(elr, "Wave Line Blue"); el = elr.End; elr = this.editControl1.Find(el, "Depth", false, false, true, false, false, false, false); } >The Find() method returns an EditLocationRange however the FindNext() does not return an EditLocationRange, > >What is a good way to find and format all occurances within an editControl > >Regards, > >Marco > >Syncfusion.Windows.Forms.Edit.EditLocationRange elr = this.editControl1.Find("0", "Depth", false, false, true, false, false, false, true); >while (elr != null) { > editControl1.AddWaveLine(elr, "Wave Line Blue"); > elr = this.editControl1.FindNext(); >}

Loader.
Up arrow icon