TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to get selected text of a WPF TextBox
Soft Dev
May 28 2012
Resource
0
0
22.2
k
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Here is a TextBox.
<TextBox Name=
"TextBox1"
>
Here is some text
</TextBox>
This is how to get the selected text:
String selText =
TextBox1
.SelectedText;
WPF TextBox