1 write to _rtfBuilder
PresentationFramework (1)
System\Windows\Documents\XamlToRtfWriter.cs (1)
46
_rtfBuilder
= new StringBuilder();
262 references to _rtfBuilder
PresentationFramework (262)
System\Windows\Documents\XamlToRtfWriter.cs (262)
108
return
_rtfBuilder
.ToString();
497
_rtfBuilder
.Append("{\\rtf1\\ansi\\ansicpg1252\\uc1\\htmautsp");
506
_rtfBuilder
.Append("\\deff");
507
_rtfBuilder
.Append(dn.FormatState.Font.ToString(CultureInfo.InvariantCulture));
530
_rtfBuilder
.Append("{\\fonttbl");
536
_rtfBuilder
.Append('{');
537
_rtfBuilder
.Append("\\f");
538
_rtfBuilder
.Append(entry.Index.ToString(CultureInfo.InvariantCulture));
539
_rtfBuilder
.Append("\\fcharset");
540
_rtfBuilder
.Append(entry.CharSet.ToString(CultureInfo.InvariantCulture));
541
_rtfBuilder
.Append(' ');
542
XamlParserHelper.AppendRTFText(
_rtfBuilder
, entry.Name, entry.CodePage);
543
_rtfBuilder
.Append(";}");
546
_rtfBuilder
.Append('}');
554
_rtfBuilder
.Append("{\\colortbl");
560
_rtfBuilder
.Append("\\red");
561
_rtfBuilder
.Append(color.R.ToString(CultureInfo.InvariantCulture));
562
_rtfBuilder
.Append("\\green");
563
_rtfBuilder
.Append(color.G.ToString(CultureInfo.InvariantCulture));
564
_rtfBuilder
.Append("\\blue");
565
_rtfBuilder
.Append(color.B.ToString(CultureInfo.InvariantCulture));
566
_rtfBuilder
.Append(';');
569
_rtfBuilder
.Append('}');
579
_rtfBuilder
.Append("\r\n{\\*\\listtable");
586
_rtfBuilder
.Append("\r\n{\\list");
587
_rtfBuilder
.Append("\\listtemplateid");
588
_rtfBuilder
.Append(listTableEntry.ID.ToString(CultureInfo.InvariantCulture));
589
_rtfBuilder
.Append("\\listhybrid");
598
_rtfBuilder
.Append("\r\n{\\listlevel");
599
_rtfBuilder
.Append("\\levelnfc");
600
_rtfBuilder
.Append(lMarker.ToString(CultureInfo.InvariantCulture));
601
_rtfBuilder
.Append("\\levelnfcn");
602
_rtfBuilder
.Append(lMarker.ToString(CultureInfo.InvariantCulture));
603
_rtfBuilder
.Append("\\leveljc0");
604
_rtfBuilder
.Append("\\leveljcn0");
605
_rtfBuilder
.Append("\\levelfollow0");
606
_rtfBuilder
.Append("\\levelstartat");
607
_rtfBuilder
.Append(listLevel.StartIndex);
608
_rtfBuilder
.Append("\\levelspace0");
609
_rtfBuilder
.Append("\\levelindent0");
610
_rtfBuilder
.Append("{\\leveltext");
611
_rtfBuilder
.Append("\\leveltemplateid");
612
_rtfBuilder
.Append(nID.ToString(CultureInfo.InvariantCulture));
616
_rtfBuilder
.Append("\\'01\\'b7}");
617
_rtfBuilder
.Append("{\\levelnumbers;}");
621
_rtfBuilder
.Append("\\'02\\'0");
622
_rtfBuilder
.Append(j.ToString(CultureInfo.InvariantCulture));
623
_rtfBuilder
.Append(".;}");
624
_rtfBuilder
.Append("{\\levelnumbers\\'01;}");
626
_rtfBuilder
.Append("\\fi-360"); // 1/4" from bullet
627
_rtfBuilder
.Append("\\li");
629
_rtfBuilder
.Append(indent);
630
_rtfBuilder
.Append("\\lin");
631
_rtfBuilder
.Append(indent);
632
_rtfBuilder
.Append("\\jclisttab\\tx");
633
_rtfBuilder
.Append(indent);
634
_rtfBuilder
.Append('}');
637
_rtfBuilder
.Append("\r\n{\\listname ;}");
638
_rtfBuilder
.Append("\\listid");
639
_rtfBuilder
.Append(listTableEntry.ID.ToString(CultureInfo.InvariantCulture));
640
_rtfBuilder
.Append('}');
643
_rtfBuilder
.Append("}\r\n");
650
_rtfBuilder
.Append("{\\*\\listoverridetable");
656
_rtfBuilder
.Append("\r\n{\\listoverride");
657
_rtfBuilder
.Append("\\listid");
658
_rtfBuilder
.Append(lo.ID.ToString(CultureInfo.InvariantCulture));
659
_rtfBuilder
.Append("\\listoverridecount0");
662
_rtfBuilder
.Append("\\levelstartat");
663
_rtfBuilder
.Append(lo.StartIndex.ToString(CultureInfo.InvariantCulture));
665
_rtfBuilder
.Append("\\ls");
666
_rtfBuilder
.Append(lo.Index.ToString(CultureInfo.InvariantCulture));
667
_rtfBuilder
.Append('}');
670
_rtfBuilder
.Append("\r\n}\r\n");
679
_rtfBuilder
.Append("\\line ");
720
_rtfBuilder
.Append('{');
726
_rtfBuilder
.Append("\\lang");
727
_rtfBuilder
.Append(fsThis.Lang.ToString(CultureInfo.InvariantCulture));
731
_rtfBuilder
.Append("\\loch");
732
_rtfBuilder
.Append("\\f");
733
_rtfBuilder
.Append(fsThis.Font.ToString(CultureInfo.InvariantCulture));
739
_rtfBuilder
.Append("\\b");
743
_rtfBuilder
.Append("\\b0");
750
_rtfBuilder
.Append("\\i");
754
_rtfBuilder
.Append("\\i0");
761
_rtfBuilder
.Append("\\ul");
765
_rtfBuilder
.Append("\\ul0");
772
_rtfBuilder
.Append("\\strike");
776
_rtfBuilder
.Append("\\strike0");
781
_rtfBuilder
.Append("\\fs");
782
_rtfBuilder
.Append(fsThis.FontSize.ToString(CultureInfo.InvariantCulture));
786
_rtfBuilder
.Append("\\cf");
787
_rtfBuilder
.Append(fsThis.CF.ToString(CultureInfo.InvariantCulture));
791
_rtfBuilder
.Append("\\highlight");
792
_rtfBuilder
.Append(fsThis.CB.ToString(CultureInfo.InvariantCulture));
798
_rtfBuilder
.Append("\\super");
802
_rtfBuilder
.Append("\\super0");
809
_rtfBuilder
.Append("\\sub");
813
_rtfBuilder
.Append("\\sub0");
820
_rtfBuilder
.Append("\\ltrch");
824
_rtfBuilder
.Append("\\rtlch");
831
_rtfBuilder
.Append(' ');
837
_rtfBuilder
.Append("{\\field{\\*\\fldinst { HYPERLINK \"");
847
_rtfBuilder
.Append("\\\\");
851
_rtfBuilder
.Append(documentNode.NavigateUri[i]);
855
_rtfBuilder
.Append("\" }}{\\fldrslt {");
859
_rtfBuilder
.Append(documentNode.Content);
886
_rtfBuilder
.Append("}}}");
892
_rtfBuilder
.Append('}');
898
_rtfBuilder
.Append('{');
920
_rtfBuilder
.Append("\\par");
924
_rtfBuilder
.Append('}');
925
_rtfBuilder
.Append("\r\n");
938
_rtfBuilder
.Append('{');
943
_rtfBuilder
.Append("\\lang");
944
_rtfBuilder
.Append(fsThis.Lang.ToString(CultureInfo.InvariantCulture));
950
_rtfBuilder
.Append("\\rtlpar");
956
_rtfBuilder
.Append(' ');
962
_rtfBuilder
.Append("\\cf");
963
_rtfBuilder
.Append(fsThis.CF.ToString(CultureInfo.InvariantCulture));
972
_rtfBuilder
.Append("\\ql");
976
_rtfBuilder
.Append("\\qr");
983
_rtfBuilder
.Append("\\qr");
987
_rtfBuilder
.Append("\\ql");
992
_rtfBuilder
.Append("\\qc");
996
_rtfBuilder
.Append("\\qj");
1003
_rtfBuilder
.Append("\\sl");
1004
_rtfBuilder
.Append(fsThis.SL.ToString(CultureInfo.InvariantCulture));
1005
_rtfBuilder
.Append("\\slmult0");
1021
_rtfBuilder
.Append('}');
1022
_rtfBuilder
.Append("\r\n");
1035
_rtfBuilder
.Append('{');
1043
_rtfBuilder
.Append("\\intbl");
1048
_rtfBuilder
.Append(' ');
1054
_rtfBuilder
.Append(' ');
1062
_rtfBuilder
.Append("\\rtlpar");
1080
_rtfBuilder
.Append("\\itap");
1081
_rtfBuilder
.Append(fsThis.ITAP.ToString(CultureInfo.InvariantCulture));
1085
_rtfBuilder
.Append("\\li");
1086
_rtfBuilder
.Append(fsThis.LI.ToString(CultureInfo.InvariantCulture));
1087
_rtfBuilder
.Append("\\ri");
1088
_rtfBuilder
.Append(fsThis.RI.ToString(CultureInfo.InvariantCulture));
1089
_rtfBuilder
.Append("\\sa");
1090
_rtfBuilder
.Append(fsThis.SA.ToString(CultureInfo.InvariantCulture));
1091
_rtfBuilder
.Append("\\sb");
1092
_rtfBuilder
.Append(fsThis.SB.ToString(CultureInfo.InvariantCulture));
1097
_rtfBuilder
.Append(fsThis.ParaBorder.RTFEncoding);
1103
_rtfBuilder
.Append("\\jclisttab\\tx");
1104
_rtfBuilder
.Append(fsThis.LI.ToString(CultureInfo.InvariantCulture));
1105
_rtfBuilder
.Append("\\fi-360");
1109
_rtfBuilder
.Append("\\fi");
1110
_rtfBuilder
.Append(fsThis.FI.ToString(CultureInfo.InvariantCulture));
1119
_rtfBuilder
.Append("\\ql");
1123
_rtfBuilder
.Append("\\qr");
1129
_rtfBuilder
.Append("\\qr");
1133
_rtfBuilder
.Append("\\ql");
1137
_rtfBuilder
.Append("\\qc");
1140
_rtfBuilder
.Append("\\qj");
1147
_rtfBuilder
.Append("\\cbpat");
1148
_rtfBuilder
.Append(fsThis.CBPara.ToString(CultureInfo.InvariantCulture));
1154
_rtfBuilder
.Append("\\sl");
1155
_rtfBuilder
.Append(fsThis.SL.ToString(CultureInfo.InvariantCulture));
1156
_rtfBuilder
.Append("\\slmult0");
1166
_rtfBuilder
.Append("\\nestcell");
1167
_rtfBuilder
.Append("{\\nonesttables\\par}");
1171
_rtfBuilder
.Append("\\cell");
1173
_rtfBuilder
.Append("\r\n");
1177
_rtfBuilder
.Append("\\par");
1179
_rtfBuilder
.Append('}');
1180
_rtfBuilder
.Append("\r\n");
1240
_rtfBuilder
.Append("\\fs");
1241
_rtfBuilder
.Append(fsThis.FontSize.ToString(CultureInfo.InvariantCulture));
1246
_rtfBuilder
.Append("\\f");
1247
_rtfBuilder
.Append(fsThis.Font.ToString(CultureInfo.InvariantCulture));
1252
_rtfBuilder
.Append("\\b");
1257
_rtfBuilder
.Append("\\i");
1262
_rtfBuilder
.Append("\\ul");
1267
_rtfBuilder
.Append("\\strike");
1272
_rtfBuilder
.Append("\\cf");
1273
_rtfBuilder
.Append(fsThis.CF.ToString(CultureInfo.InvariantCulture));
1299
_rtfBuilder
.Append("{\\listtext ");
1300
_rtfBuilder
.Append(dnThis.ListLabel);
1304
_rtfBuilder
.Append('.');
1306
_rtfBuilder
.Append("\\tab}");
1311
_rtfBuilder
.Append("\\ls");
1312
_rtfBuilder
.Append(fsThis.ILS.ToString(CultureInfo.InvariantCulture));
1317
_rtfBuilder
.Append("\\ilvl");
1318
_rtfBuilder
.Append(fsThis.ILVL.ToString(CultureInfo.InvariantCulture));
1324
_rtfBuilder
.Append("{\\pntext ");
1325
_rtfBuilder
.Append(dnThis.ListLabel);
1329
_rtfBuilder
.Append('.');
1331
_rtfBuilder
.Append("\\tab}{\\*\\pn");
1332
_rtfBuilder
.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker));
1335
_rtfBuilder
.Append("\\pnlvl");
1336
_rtfBuilder
.Append(fsThis.ListLevel.ToString(CultureInfo.InvariantCulture));
1340
_rtfBuilder
.Append("\\pnhang");
1344
_rtfBuilder
.Append("\\pnstart");
1345
_rtfBuilder
.Append(fsThis.StartIndex.ToString(CultureInfo.InvariantCulture));
1349
_rtfBuilder
.Append("{\\pntxtb\\'B7}}");
1353
_rtfBuilder
.Append("{\\pntxta }{\\pntxtb }}");
1357
_rtfBuilder
.Append("{\\pntxta .}}");
1378
_rtfBuilder
.Append("\r\n");
1379
_rtfBuilder
.Append('{');
1388
_rtfBuilder
.Append("\\intbl\\itap");
1389
_rtfBuilder
.Append(nDepth.ToString(CultureInfo.InvariantCulture));
1396
_rtfBuilder
.Append("\\intbl\\itap");
1397
_rtfBuilder
.Append(nDepth.ToString(CultureInfo.InvariantCulture));
1399
_rtfBuilder
.Append('{');
1402
_rtfBuilder
.Append("\\*\\nesttableprops");
1410
_rtfBuilder
.Append("\\nestrow");
1414
_rtfBuilder
.Append("\\row");
1417
_rtfBuilder
.Append("}}");
1418
_rtfBuilder
.Append("\r\n");
1423
_rtfBuilder
.Append("\\trowd");
1437
_rtfBuilder
.Append("\\trleft");
1438
_rtfBuilder
.Append(s);
1439
_rtfBuilder
.Append("\\trgaph-");
1440
_rtfBuilder
.Append(s);
1444
_rtfBuilder
.Append("\\trgaph0");
1445
_rtfBuilder
.Append("\\trleft0");
1450
_rtfBuilder
.Append("\\trql");
1453
_rtfBuilder
.Append("\\rtlrow");
1457
_rtfBuilder
.Append("\\ltrrow");
1488
_rtfBuilder
.Append("\\trftsWidth1");
1489
_rtfBuilder
.Append("\\trftsWidthB3");
1494
_rtfBuilder
.Append("\\trpaddl10");
1495
_rtfBuilder
.Append("\\trpaddr10");
1496
_rtfBuilder
.Append("\\trpaddb10");
1497
_rtfBuilder
.Append("\\trpaddt10");
1498
_rtfBuilder
.Append("\\trpaddfl3");
1499
_rtfBuilder
.Append("\\trpaddfr3");
1500
_rtfBuilder
.Append("\\trpaddft3");
1501
_rtfBuilder
.Append("\\trpaddfb3");
1524
_rtfBuilder
.Append('{');
1531
_rtfBuilder
.Append('}');
1541
_rtfBuilder
.Append("\\clvmgf");
1545
_rtfBuilder
.Append("\\clvmrg");
1558
_rtfBuilder
.Append("\\clvertalt");
1601
_rtfBuilder
.Append("\\clcbpat");
1602
_rtfBuilder
.Append(fs.CBPara.ToString(CultureInfo.InvariantCulture));
1642
_rtfBuilder
.Append(cfSpanned.RTFEncodingForWidth);
1656
_rtfBuilder
.Append(cf.RTFEncodingForWidth);
1663
_rtfBuilder
.Append("\\clftsWidth1");
1664
_rtfBuilder
.Append("\\cellx");
1668
_rtfBuilder
.Append(cellX.ToString(CultureInfo.InvariantCulture));
1740
_rtfBuilder
.Append(borderControlWord);
1741
_rtfBuilder
.Append(bf.RTFEncoding);
1968
_rtfBuilder
.Append(nested ? "\\nestcell" : "\\cell");
1969
_rtfBuilder
.Append("\r\n");
1978
_rtfBuilder
.Append("\\loch\\hich\\dbch\\pard\\plain\\ltrpar\\itap0");
1994
_rtfBuilder
.Append('}');
2048
_rtfBuilder
.Append("{\\*\\shppict{\\pict");
2106
_rtfBuilder
.Append("\\dn");
2109
_rtfBuilder
.Append(
2115
_rtfBuilder
.Append("\\picwgoal");
2116
_rtfBuilder
.Append(Converters.PxToTwipRounded(imageNaturalSize.Width * scaleFactor.Width).ToString(CultureInfo.InvariantCulture));
2119
_rtfBuilder
.Append("\\pichgoal");
2120
_rtfBuilder
.Append(Converters.PxToTwipRounded(imageNaturalSize.Height * scaleFactor.Height).ToString(CultureInfo.InvariantCulture));
2130
_rtfBuilder
.Append("\\pngblip");
2134
_rtfBuilder
.Append("\\jpegblip");
2139
_rtfBuilder
.Append("\r\n");
2148
_rtfBuilder
.Append(imageHexDataString);
2152
_rtfBuilder
.Append("}}");