Hi guy,
How I can delete richtext of line?
strText = RichText.GetLine("RichText1", 2);
??
Professional Software Development Tools
Hi guy,
How I can delete richtext of line?
strText = RichText.GetLine("RichText1", 2);
??
shanex252
This should work for you. It gets a little tricky because there is limited functionality for line manipulation.
hthCode:-- get the text in line 2 strText = RichText.GetLine("RichText1", 2); -- find the location of the text in the object gotit = RichText.FindText("RichText1", strText, 1, -1, true, true) -- set the selection for line 2 text RichText.SetSelection("RichText1", gotit.Start, gotit.End) -- delete the selection and the line advance (2 deletes) RichText.Delete("RichText1");RichText.Delete("RichText1")