wpf - RTF structure when typing -
i have wpf app uses richtextbox control. when i'm typing, don't understand rtf structure appears generate.
i'm typing simple phrase (e.g. 3 miles), , result is:
{\rtf1\ansi\ansicpg1252\uc1\htmautsp\deff2{\fonttbl{\f0\fcharset0 times new roman;}{\f2\fcharset0 segoe ui;}}{\colortbl\red0\green0\blue0;\red255\green255\blue255;}\loch\hich\dbch\pard\plain\ltrpar\itap0{\lang1033\fs18\f2\cf0 \cf0\ql{\fs24\f2 {\highlight1\ltrch about 3 }{\highlight1\ltrch miles }{\highlight1\ltrch }{\highlight1\ltrch less }\li0\ri0\sa0\sb0\fi0\ql\par} } }
the point see here 3 words (about, 3, miles) appear separately (well, 'about' , '3' appear together, 'miles' not).
but other times (i'm not sure it's because type whitespaces after or not), 3 words appear together.
could please explain?
the control creating unnecessarily long rtf repeating formatting information different words, though words have same format. unless trying modify rtf, don't have worry this, since legitimate rtf reader process fine. yes, it's sub-optimal, because repeating formatting controls redundant, valid rtf.
Comments
Post a Comment