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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on applications using
Windows Presentation Foundation. I'm usingSystem.Windows.Controls.RichTextBoxto display RTF generated byMigraDocby 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.Documentlooks 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 aSelectionTabsproperty that allows specification of tab stops.System.Windows.Controls.RichTextBoxdoes not support this property.Is there another way to specify tab stops using
MigraDoc, or does thisMigraDocfeature depend on using it with aSystem.Windows.Forms.RichTextBoxand some code outside of the development of aDocumentinstance? Runningfind . -type f -name "*.cs" | xargs grep -H SelectionTabswithin themasterbranch of thePDFsharprepo doesn't show any rows.Beta Was this translation helpful? Give feedback.
All reactions