Can you use EM_GETTEXTEX to the the selected RTF of a rich edit control?

72 views Asked by At

I"m trying to come up with a way of getting the rich (RTF-formatted) text of a selection within a rich edit control (WinForms RichTextBox) using Win32 API--a way which is guaranteed to include all hidden (invisible) rich text, regardless of the .NET platform and where the hidden text is within a selection. Can I do this using EM_GETTEXTEX message? If so, what would the code be (in VB.NET if possible, though I can convert to it--and as simply as possible)? Remember: rich text, not plain; and selection, not all. (SelectedRtf is reliable for .NET Framework 4.6.x, but not .NET Framework 4.7+.)

0

There are 0 answers