Click here to Skip to main content
15,906,558 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Buddies:

I have a rich text box and I want its content to enter as an input of a method. forexample:
C#
mymethod (rtx1.Rtf)

and the definition of my method:
C#
mymethod( richtextformat input )


So here is the question. is there any clue?
Yours
Posted
Updated 27-Mar-12 4:46am
v4
Comments
fct2004 28-Mar-12 1:01am    
Is this a WinForms or WPF application? Each of them has their own RichTextBox class, and their content accessed through different properties. Either way, I would advise the scan then parse approach.

1 solution

But richtextformat would simply be a string (including the rtf formatted text. ()http://msdn.microsoft.com/en-US/library/system.windows.forms.richtextbox.rtf(v=vs.80).aspx[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900