Replies: 1 comment
-
Tab stops work when watching the RTF with e.g. Microsoft Word. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on applications using
Windows Presentation Foundation
. I'm usingSystem.Windows.Controls.RichTextBox
to display RTF generated byMigraDoc
by callingRtfDocumentRenderer.RenderToString()
and then callingRichTextBox.SelectAll()
andRichTextBox.Selection.Load()
. The displayed RTF document looks as I expect, except for the absence of tab stops. In contrast, the PDF file I generate from the sameMigraDoc.DocumentObjectModel.Document
looks as I expect, including tab stops.I'm declaring tab stops as follows:
Searching the web, I found that there is also
System.Windows.Forms.RichTextBox
, but that is apparently only for applications using Windows Forms. That class has aSelectionTabs
property that allows specification of tab stops.System.Windows.Controls.RichTextBox
does not support this property.Is there another way to specify tab stops using
MigraDoc
, or does thisMigraDoc
feature depend on using it with aSystem.Windows.Forms.RichTextBox
and some code outside of the development of aDocument
instance? Runningfind . -type f -name "*.cs" | xargs grep -H SelectionTabs
within themaster
branch of thePDFsharp
repo doesn't show any rows.Beta Was this translation helpful? Give feedback.
All reactions