EditControl1.DeleteText

Hi,
I have some selected text from editcontrol textbox. I want to delete the first two characters from the start and end of the selected text. So how do I get the: Syncfusion.Windows.Forms.Edit.Utils.CoordinatePoint, or system.drawing.point - for the deleteText method?

Dim Selectedtext As Syncfusion.Windows.Forms.Edit.Utils.ITextRange
Selectedtext = EditControl1.Selection

EditControl1.DeleteText(??)

Vb.net please
Thanks in advance


1 Reply

FS Fathima Shalini P Syncfusion Team October 23, 2008 10:01 AM UTC

Hi Troy,

Thank you for your interest in Syncfusion Products.

Please refer to the below sample that deletes the starting two characters and the last two characters in a selected text:

http://websamples.syncfusion.com/samples/Edit/F77256/main.htm

Please let me know if any concerns.

Regards,
Fathima


Loader.
Up arrow icon