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 clear contents of a WPF RichTextBox?
Soft Dev
May 28 2012
Resource
0
0
45.4
k
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
You can use RichTextBox.Document.Blocks.Clear to clear a RichTextBox content.
private void ClearButton_Click(object sender, RoutedEventArgs e)
{
RTB.Document.Blocks.Clear();
}