1 write to _rtfBuilder
PresentationFramework (1)
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (1)
47
_rtfBuilder
= new StringBuilder();
262 references to _rtfBuilder
PresentationFramework (262)
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (262)
109
return
_rtfBuilder
.ToString();
498
_rtfBuilder
.Append("{\\rtf1\\ansi\\ansicpg1252\\uc1\\htmautsp");
507
_rtfBuilder
.Append("\\deff");
508
_rtfBuilder
.Append(dn.FormatState.Font.ToString(CultureInfo.InvariantCulture));
531
_rtfBuilder
.Append("{\\fonttbl");
537
_rtfBuilder
.Append("{");
538
_rtfBuilder
.Append("\\f");
539
_rtfBuilder
.Append(entry.Index.ToString(CultureInfo.InvariantCulture));
540
_rtfBuilder
.Append("\\fcharset");
541
_rtfBuilder
.Append(entry.CharSet.ToString(CultureInfo.InvariantCulture));
542
_rtfBuilder
.Append(" ");
543
XamlParserHelper.AppendRTFText(
_rtfBuilder
, entry.Name, entry.CodePage);
544
_rtfBuilder
.Append(";}");
547
_rtfBuilder
.Append("}");
555
_rtfBuilder
.Append("{\\colortbl");
561
_rtfBuilder
.Append("\\red");
562
_rtfBuilder
.Append(color.R.ToString(CultureInfo.InvariantCulture));
563
_rtfBuilder
.Append("\\green");
564
_rtfBuilder
.Append(color.G.ToString(CultureInfo.InvariantCulture));
565
_rtfBuilder
.Append("\\blue");
566
_rtfBuilder
.Append(color.B.ToString(CultureInfo.InvariantCulture));
567
_rtfBuilder
.Append(";");
570
_rtfBuilder
.Append("}");
580
_rtfBuilder
.Append("\r\n{\\*\\listtable");
587
_rtfBuilder
.Append("\r\n{\\list");
588
_rtfBuilder
.Append("\\listtemplateid");
589
_rtfBuilder
.Append(listTableEntry.ID.ToString(CultureInfo.InvariantCulture));
590
_rtfBuilder
.Append("\\listhybrid");
599
_rtfBuilder
.Append("\r\n{\\listlevel");
600
_rtfBuilder
.Append("\\levelnfc");
601
_rtfBuilder
.Append(lMarker.ToString(CultureInfo.InvariantCulture));
602
_rtfBuilder
.Append("\\levelnfcn");
603
_rtfBuilder
.Append(lMarker.ToString(CultureInfo.InvariantCulture));
604
_rtfBuilder
.Append("\\leveljc0");
605
_rtfBuilder
.Append("\\leveljcn0");
606
_rtfBuilder
.Append("\\levelfollow0");
607
_rtfBuilder
.Append("\\levelstartat");
608
_rtfBuilder
.Append(listLevel.StartIndex);
609
_rtfBuilder
.Append("\\levelspace0");
610
_rtfBuilder
.Append("\\levelindent0");
611
_rtfBuilder
.Append("{\\leveltext");
612
_rtfBuilder
.Append("\\leveltemplateid");
613
_rtfBuilder
.Append(nID.ToString(CultureInfo.InvariantCulture));
617
_rtfBuilder
.Append("\\'01\\'b7}");
618
_rtfBuilder
.Append("{\\levelnumbers;}");
622
_rtfBuilder
.Append("\\'02\\'0");
623
_rtfBuilder
.Append(j.ToString(CultureInfo.InvariantCulture));
624
_rtfBuilder
.Append(".;}");
625
_rtfBuilder
.Append("{\\levelnumbers\\'01;}");
627
_rtfBuilder
.Append("\\fi-360"); // 1/4" from bullet
628
_rtfBuilder
.Append("\\li");
630
_rtfBuilder
.Append(indent);
631
_rtfBuilder
.Append("\\lin");
632
_rtfBuilder
.Append(indent);
633
_rtfBuilder
.Append("\\jclisttab\\tx");
634
_rtfBuilder
.Append(indent);
635
_rtfBuilder
.Append("}");
638
_rtfBuilder
.Append("\r\n{\\listname ;}");
639
_rtfBuilder
.Append("\\listid");
640
_rtfBuilder
.Append(listTableEntry.ID.ToString(CultureInfo.InvariantCulture));
641
_rtfBuilder
.Append("}");
644
_rtfBuilder
.Append("}\r\n");
651
_rtfBuilder
.Append("{\\*\\listoverridetable");
657
_rtfBuilder
.Append("\r\n{\\listoverride");
658
_rtfBuilder
.Append("\\listid");
659
_rtfBuilder
.Append(lo.ID.ToString(CultureInfo.InvariantCulture));
660
_rtfBuilder
.Append("\\listoverridecount0");
663
_rtfBuilder
.Append("\\levelstartat");
664
_rtfBuilder
.Append(lo.StartIndex.ToString(CultureInfo.InvariantCulture));
666
_rtfBuilder
.Append("\\ls");
667
_rtfBuilder
.Append(lo.Index.ToString(CultureInfo.InvariantCulture));
668
_rtfBuilder
.Append("}");
671
_rtfBuilder
.Append("\r\n}\r\n");
680
_rtfBuilder
.Append("\\line ");
721
_rtfBuilder
.Append("{");
727
_rtfBuilder
.Append("\\lang");
728
_rtfBuilder
.Append(fsThis.Lang.ToString(CultureInfo.InvariantCulture));
732
_rtfBuilder
.Append("\\loch");
733
_rtfBuilder
.Append("\\f");
734
_rtfBuilder
.Append(fsThis.Font.ToString(CultureInfo.InvariantCulture));
740
_rtfBuilder
.Append("\\b");
744
_rtfBuilder
.Append("\\b0");
751
_rtfBuilder
.Append("\\i");
755
_rtfBuilder
.Append("\\i0");
762
_rtfBuilder
.Append("\\ul");
766
_rtfBuilder
.Append("\\ul0");
773
_rtfBuilder
.Append("\\strike");
777
_rtfBuilder
.Append("\\strike0");
782
_rtfBuilder
.Append("\\fs");
783
_rtfBuilder
.Append(fsThis.FontSize.ToString(CultureInfo.InvariantCulture));
787
_rtfBuilder
.Append("\\cf");
788
_rtfBuilder
.Append(fsThis.CF.ToString(CultureInfo.InvariantCulture));
792
_rtfBuilder
.Append("\\highlight");
793
_rtfBuilder
.Append(fsThis.CB.ToString(CultureInfo.InvariantCulture));
799
_rtfBuilder
.Append("\\super");
803
_rtfBuilder
.Append("\\super0");
810
_rtfBuilder
.Append("\\sub");
814
_rtfBuilder
.Append("\\sub0");
821
_rtfBuilder
.Append("\\ltrch");
825
_rtfBuilder
.Append("\\rtlch");
832
_rtfBuilder
.Append(" ");
838
_rtfBuilder
.Append("{\\field{\\*\\fldinst { HYPERLINK \"");
848
_rtfBuilder
.Append("\\\\");
852
_rtfBuilder
.Append(documentNode.NavigateUri[i]);
856
_rtfBuilder
.Append("\" }}{\\fldrslt {");
860
_rtfBuilder
.Append(documentNode.Content);
887
_rtfBuilder
.Append("}}}");
893
_rtfBuilder
.Append("}");
899
_rtfBuilder
.Append("{");
921
_rtfBuilder
.Append("\\par");
925
_rtfBuilder
.Append("}");
926
_rtfBuilder
.Append("\r\n");
939
_rtfBuilder
.Append("{");
944
_rtfBuilder
.Append("\\lang");
945
_rtfBuilder
.Append(fsThis.Lang.ToString(CultureInfo.InvariantCulture));
951
_rtfBuilder
.Append("\\rtlpar");
957
_rtfBuilder
.Append(" ");
963
_rtfBuilder
.Append("\\cf");
964
_rtfBuilder
.Append(fsThis.CF.ToString(CultureInfo.InvariantCulture));
973
_rtfBuilder
.Append("\\ql");
977
_rtfBuilder
.Append("\\qr");
984
_rtfBuilder
.Append("\\qr");
988
_rtfBuilder
.Append("\\ql");
993
_rtfBuilder
.Append("\\qc");
997
_rtfBuilder
.Append("\\qj");
1004
_rtfBuilder
.Append("\\sl");
1005
_rtfBuilder
.Append(fsThis.SL.ToString(CultureInfo.InvariantCulture));
1006
_rtfBuilder
.Append("\\slmult0");
1022
_rtfBuilder
.Append("}");
1023
_rtfBuilder
.Append("\r\n");
1036
_rtfBuilder
.Append("{");
1044
_rtfBuilder
.Append("\\intbl");
1049
_rtfBuilder
.Append(" ");
1055
_rtfBuilder
.Append(" ");
1063
_rtfBuilder
.Append("\\rtlpar");
1081
_rtfBuilder
.Append("\\itap");
1082
_rtfBuilder
.Append(fsThis.ITAP.ToString(CultureInfo.InvariantCulture));
1086
_rtfBuilder
.Append("\\li");
1087
_rtfBuilder
.Append(fsThis.LI.ToString(CultureInfo.InvariantCulture));
1088
_rtfBuilder
.Append("\\ri");
1089
_rtfBuilder
.Append(fsThis.RI.ToString(CultureInfo.InvariantCulture));
1090
_rtfBuilder
.Append("\\sa");
1091
_rtfBuilder
.Append(fsThis.SA.ToString(CultureInfo.InvariantCulture));
1092
_rtfBuilder
.Append("\\sb");
1093
_rtfBuilder
.Append(fsThis.SB.ToString(CultureInfo.InvariantCulture));
1098
_rtfBuilder
.Append(fsThis.ParaBorder.RTFEncoding);
1104
_rtfBuilder
.Append("\\jclisttab\\tx");
1105
_rtfBuilder
.Append(fsThis.LI.ToString(CultureInfo.InvariantCulture));
1106
_rtfBuilder
.Append("\\fi-360");
1110
_rtfBuilder
.Append("\\fi");
1111
_rtfBuilder
.Append(fsThis.FI.ToString(CultureInfo.InvariantCulture));
1120
_rtfBuilder
.Append("\\ql");
1124
_rtfBuilder
.Append("\\qr");
1130
_rtfBuilder
.Append("\\qr");
1134
_rtfBuilder
.Append("\\ql");
1138
_rtfBuilder
.Append("\\qc");
1141
_rtfBuilder
.Append("\\qj");
1148
_rtfBuilder
.Append("\\cbpat");
1149
_rtfBuilder
.Append(fsThis.CBPara.ToString(CultureInfo.InvariantCulture));
1155
_rtfBuilder
.Append("\\sl");
1156
_rtfBuilder
.Append(fsThis.SL.ToString(CultureInfo.InvariantCulture));
1157
_rtfBuilder
.Append("\\slmult0");
1167
_rtfBuilder
.Append("\\nestcell");
1168
_rtfBuilder
.Append("{\\nonesttables\\par}");
1173
_rtfBuilder
.Append("\\cell");
1175
_rtfBuilder
.Append("\r\n");
1179
_rtfBuilder
.Append("\\par");
1181
_rtfBuilder
.Append("}");
1182
_rtfBuilder
.Append("\r\n");
1242
_rtfBuilder
.Append("\\fs");
1243
_rtfBuilder
.Append(fsThis.FontSize.ToString(CultureInfo.InvariantCulture));
1248
_rtfBuilder
.Append("\\f");
1249
_rtfBuilder
.Append(fsThis.Font.ToString(CultureInfo.InvariantCulture));
1254
_rtfBuilder
.Append("\\b");
1259
_rtfBuilder
.Append("\\i");
1264
_rtfBuilder
.Append("\\ul");
1269
_rtfBuilder
.Append("\\strike");
1274
_rtfBuilder
.Append("\\cf");
1275
_rtfBuilder
.Append(fsThis.CF.ToString(CultureInfo.InvariantCulture));
1301
_rtfBuilder
.Append("{\\listtext ");
1302
_rtfBuilder
.Append(dnThis.ListLabel);
1306
_rtfBuilder
.Append(".");
1308
_rtfBuilder
.Append("\\tab}");
1313
_rtfBuilder
.Append("\\ls");
1314
_rtfBuilder
.Append(fsThis.ILS.ToString(CultureInfo.InvariantCulture));
1319
_rtfBuilder
.Append("\\ilvl");
1320
_rtfBuilder
.Append(fsThis.ILVL.ToString(CultureInfo.InvariantCulture));
1326
_rtfBuilder
.Append("{\\pntext ");
1327
_rtfBuilder
.Append(dnThis.ListLabel);
1331
_rtfBuilder
.Append(".");
1333
_rtfBuilder
.Append("\\tab}{\\*\\pn");
1334
_rtfBuilder
.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker));
1337
_rtfBuilder
.Append("\\pnlvl");
1338
_rtfBuilder
.Append(fsThis.ListLevel.ToString(CultureInfo.InvariantCulture));
1342
_rtfBuilder
.Append("\\pnhang");
1346
_rtfBuilder
.Append("\\pnstart");
1347
_rtfBuilder
.Append(fsThis.StartIndex.ToString(CultureInfo.InvariantCulture));
1351
_rtfBuilder
.Append("{\\pntxtb\\'B7}}");
1355
_rtfBuilder
.Append("{\\pntxta }{\\pntxtb }}");
1359
_rtfBuilder
.Append("{\\pntxta .}}");
1380
_rtfBuilder
.Append("\r\n");
1381
_rtfBuilder
.Append("{");
1390
_rtfBuilder
.Append("\\intbl\\itap");
1391
_rtfBuilder
.Append(nDepth.ToString(CultureInfo.InvariantCulture));
1398
_rtfBuilder
.Append("\\intbl\\itap");
1399
_rtfBuilder
.Append(nDepth.ToString(CultureInfo.InvariantCulture));
1401
_rtfBuilder
.Append("{");
1404
_rtfBuilder
.Append("\\*\\nesttableprops");
1412
_rtfBuilder
.Append("\\nestrow");
1416
_rtfBuilder
.Append("\\row");
1419
_rtfBuilder
.Append("}}");
1420
_rtfBuilder
.Append("\r\n");
1425
_rtfBuilder
.Append("\\trowd");
1439
_rtfBuilder
.Append("\\trleft");
1440
_rtfBuilder
.Append(s);
1441
_rtfBuilder
.Append("\\trgaph-");
1442
_rtfBuilder
.Append(s);
1446
_rtfBuilder
.Append("\\trgaph0");
1447
_rtfBuilder
.Append("\\trleft0");
1452
_rtfBuilder
.Append("\\trql");
1455
_rtfBuilder
.Append("\\rtlrow");
1459
_rtfBuilder
.Append("\\ltrrow");
1490
_rtfBuilder
.Append("\\trftsWidth1");
1491
_rtfBuilder
.Append("\\trftsWidthB3");
1496
_rtfBuilder
.Append("\\trpaddl10");
1497
_rtfBuilder
.Append("\\trpaddr10");
1498
_rtfBuilder
.Append("\\trpaddb10");
1499
_rtfBuilder
.Append("\\trpaddt10");
1500
_rtfBuilder
.Append("\\trpaddfl3");
1501
_rtfBuilder
.Append("\\trpaddfr3");
1502
_rtfBuilder
.Append("\\trpaddft3");
1503
_rtfBuilder
.Append("\\trpaddfb3");
1526
_rtfBuilder
.Append("{");
1533
_rtfBuilder
.Append("}");
1543
_rtfBuilder
.Append("\\clvmgf");
1547
_rtfBuilder
.Append("\\clvmrg");
1560
_rtfBuilder
.Append("\\clvertalt");
1603
_rtfBuilder
.Append("\\clcbpat");
1604
_rtfBuilder
.Append(fs.CBPara.ToString(CultureInfo.InvariantCulture));
1644
_rtfBuilder
.Append(cfSpanned.RTFEncodingForWidth);
1658
_rtfBuilder
.Append(cf.RTFEncodingForWidth);
1665
_rtfBuilder
.Append("\\clftsWidth1");
1666
_rtfBuilder
.Append("\\cellx");
1670
_rtfBuilder
.Append(cellX.ToString(CultureInfo.InvariantCulture));
1742
_rtfBuilder
.Append(borderControlWord);
1743
_rtfBuilder
.Append(bf.RTFEncoding);
1970
_rtfBuilder
.Append(nested ? "\\nestcell" : "\\cell");
1971
_rtfBuilder
.Append("\r\n");
1980
_rtfBuilder
.Append("\\loch\\hich\\dbch\\pard\\plain\\ltrpar\\itap0");
1996
_rtfBuilder
.Append("}");
2049
_rtfBuilder
.Append("{\\*\\shppict{\\pict");
2107
_rtfBuilder
.Append("\\dn");
2110
_rtfBuilder
.Append(
2116
_rtfBuilder
.Append("\\picwgoal");
2117
_rtfBuilder
.Append(Converters.PxToTwipRounded(imageNaturalSize.Width * scaleFactor.Width).ToString(CultureInfo.InvariantCulture));
2120
_rtfBuilder
.Append("\\pichgoal");
2121
_rtfBuilder
.Append(Converters.PxToTwipRounded(imageNaturalSize.Height * scaleFactor.Height).ToString(CultureInfo.InvariantCulture));
2131
_rtfBuilder
.Append("\\pngblip");
2135
_rtfBuilder
.Append("\\jpegblip");
2140
_rtfBuilder
.Append("\r\n");
2149
_rtfBuilder
.Append(imageHexDataString);
2153
_rtfBuilder
.Append("}}");