Demo中如果去掉 frame.Selection.Save(out a, TXTextControl.BinaryStreamType.InternalUnicodeFormat);也加载不出来数据啊,我的意思这个从外部加载,并非从他本身去读取
TXTextControl.TextFrame frame = textControl1.TextFrames.GetItem(1000);
frame.Activate();
byte[] a = System.Text.Encoding.Default.GetBytes("123456");
//frame.Selection.Save(out a, TXTextControl.BinaryStreamType.InternalUnicodeFormat);
frame.Selection.Load(a, TXTextControl.BinaryStreamType.InternalUnicodeFormat);
//frame.Selection.Load("测试文本", TXTextControl.StringStreamType.PlainText); |