Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Register
Login
How to clear contents of a WPF RichTextBox?
WhatsApp
Soft Dev
12y
36
k
0
5
Resource
0
You can use RichTextBox.Document.Blocks.Clear to clear a RichTextBox content.
private void ClearButton_Click(object sender, RoutedEventArgs e)
{
RTB.Document.Blocks.Clear();
}