We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon