How the text can be replaced by tab whih NSelection?


Author
Message
Junghyeon Ryu
Junghyeon Ryu
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 7, Visits: 104
I'm trying to replace the specific text (space or special text) to tab.
First, the text is selected by NSelection. 
But it does not have method for InsertTab.
How can I do this?
Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Junghyron,

You can use the following code insert a tab at the currently selected text selection:

richTextView.View.Selection.InsertText("\t");

If the selection object currently selects a range then the text will be replaced by a tab character. 

We hope this helps - let us know if you meet any problems.




Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search