1 write to _rtfBuilder
PresentationFramework (1)
System\Windows\Documents\XamlToRtfWriter.cs (1)
45
_rtfBuilder
= new StringBuilder();
262 references to _rtfBuilder
PresentationFramework (262)
System\Windows\Documents\XamlToRtfWriter.cs (262)
107
return
_rtfBuilder
.ToString();
496
_rtfBuilder
.Append("{\\rtf1\\ansi\\ansicpg1252\\uc1\\htmautsp");
505
_rtfBuilder
.Append("\\deff");
506
_rtfBuilder
.Append(dn.FormatState.Font.ToString(CultureInfo.InvariantCulture));
529
_rtfBuilder
.Append("{\\fonttbl");
535
_rtfBuilder
.Append('{');
536
_rtfBuilder
.Append("\\f");
537
_rtfBuilder
.Append(entry.Index.ToString(CultureInfo.InvariantCulture));
538
_rtfBuilder
.Append("\\fcharset");
539
_rtfBuilder
.Append(entry.CharSet.ToString(CultureInfo.InvariantCulture));
540
_rtfBuilder
.Append(' ');
541
XamlParserHelper.AppendRTFText(
_rtfBuilder
, entry.Name, entry.CodePage);
542
_rtfBuilder
.Append(";}");
545
_rtfBuilder
.Append('}');
553
_rtfBuilder
.Append("{\\colortbl");
559
_rtfBuilder
.Append("\\red");
560
_rtfBuilder
.Append(color.R.ToString(CultureInfo.InvariantCulture));
561
_rtfBuilder
.Append("\\green");
562
_rtfBuilder
.Append(color.G.ToString(CultureInfo.InvariantCulture));
563
_rtfBuilder
.Append("\\blue");
564
_rtfBuilder
.Append(color.B.ToString(CultureInfo.InvariantCulture));
565
_rtfBuilder
.Append(';');
568
_rtfBuilder
.Append('}');
578
_rtfBuilder
.Append("\r\n{\\*\\listtable");
585
_rtfBuilder
.Append("\r\n{\\list");
586
_rtfBuilder
.Append("\\listtemplateid");
587
_rtfBuilder
.Append(listTableEntry.ID.ToString(CultureInfo.InvariantCulture));
588
_rtfBuilder
.Append("\\listhybrid");
597
_rtfBuilder
.Append("\r\n{\\listlevel");
598
_rtfBuilder
.Append("\\levelnfc");
599
_rtfBuilder
.Append(lMarker.ToString(CultureInfo.InvariantCulture));
600
_rtfBuilder
.Append("\\levelnfcn");
601
_rtfBuilder
.Append(lMarker.ToString(CultureInfo.InvariantCulture));
602
_rtfBuilder
.Append("\\leveljc0");
603
_rtfBuilder
.Append("\\leveljcn0");
604
_rtfBuilder
.Append("\\levelfollow0");
605
_rtfBuilder
.Append("\\levelstartat");
606
_rtfBuilder
.Append(listLevel.StartIndex);
607
_rtfBuilder
.Append("\\levelspace0");
608
_rtfBuilder
.Append("\\levelindent0");
609
_rtfBuilder
.Append("{\\leveltext");
610
_rtfBuilder
.Append("\\leveltemplateid");
611
_rtfBuilder
.Append(nID.ToString(CultureInfo.InvariantCulture));
615
_rtfBuilder
.Append("\\'01\\'b7}");
616
_rtfBuilder
.Append("{\\levelnumbers;}");
620
_rtfBuilder
.Append("\\'02\\'0");
621
_rtfBuilder
.Append(j.ToString(CultureInfo.InvariantCulture));
622
_rtfBuilder
.Append(".;}");
623
_rtfBuilder
.Append("{\\levelnumbers\\'01;}");
625
_rtfBuilder
.Append("\\fi-360"); // 1/4" from bullet
626
_rtfBuilder
.Append("\\li");
628
_rtfBuilder
.Append(indent);
629
_rtfBuilder
.Append("\\lin");
630
_rtfBuilder
.Append(indent);
631
_rtfBuilder
.Append("\\jclisttab\\tx");
632
_rtfBuilder
.Append(indent);
633
_rtfBuilder
.Append('}');
636
_rtfBuilder
.Append("\r\n{\\listname ;}");
637
_rtfBuilder
.Append("\\listid");
638
_rtfBuilder
.Append(listTableEntry.ID.ToString(CultureInfo.InvariantCulture));
639
_rtfBuilder
.Append('}');
642
_rtfBuilder
.Append("}\r\n");
649
_rtfBuilder
.Append("{\\*\\listoverridetable");
655
_rtfBuilder
.Append("\r\n{\\listoverride");
656
_rtfBuilder
.Append("\\listid");
657
_rtfBuilder
.Append(lo.ID.ToString(CultureInfo.InvariantCulture));
658
_rtfBuilder
.Append("\\listoverridecount0");
661
_rtfBuilder
.Append("\\levelstartat");
662
_rtfBuilder
.Append(lo.StartIndex.ToString(CultureInfo.InvariantCulture));
664
_rtfBuilder
.Append("\\ls");
665
_rtfBuilder
.Append(lo.Index.ToString(CultureInfo.InvariantCulture));
666
_rtfBuilder
.Append('}');
669
_rtfBuilder
.Append("\r\n}\r\n");
678
_rtfBuilder
.Append("\\line ");
719
_rtfBuilder
.Append('{');
725
_rtfBuilder
.Append("\\lang");
726
_rtfBuilder
.Append(fsThis.Lang.ToString(CultureInfo.InvariantCulture));
730
_rtfBuilder
.Append("\\loch");
731
_rtfBuilder
.Append("\\f");
732
_rtfBuilder
.Append(fsThis.Font.ToString(CultureInfo.InvariantCulture));
738
_rtfBuilder
.Append("\\b");
742
_rtfBuilder
.Append("\\b0");
749
_rtfBuilder
.Append("\\i");
753
_rtfBuilder
.Append("\\i0");
760
_rtfBuilder
.Append("\\ul");
764
_rtfBuilder
.Append("\\ul0");
771
_rtfBuilder
.Append("\\strike");
775
_rtfBuilder
.Append("\\strike0");
780
_rtfBuilder
.Append("\\fs");
781
_rtfBuilder
.Append(fsThis.FontSize.ToString(CultureInfo.InvariantCulture));
785
_rtfBuilder
.Append("\\cf");
786
_rtfBuilder
.Append(fsThis.CF.ToString(CultureInfo.InvariantCulture));
790
_rtfBuilder
.Append("\\highlight");
791
_rtfBuilder
.Append(fsThis.CB.ToString(CultureInfo.InvariantCulture));
797
_rtfBuilder
.Append("\\super");
801
_rtfBuilder
.Append("\\super0");
808
_rtfBuilder
.Append("\\sub");
812
_rtfBuilder
.Append("\\sub0");
819
_rtfBuilder
.Append("\\ltrch");
823
_rtfBuilder
.Append("\\rtlch");
830
_rtfBuilder
.Append(' ');
836
_rtfBuilder
.Append("{\\field{\\*\\fldinst { HYPERLINK \"");
846
_rtfBuilder
.Append("\\\\");
850
_rtfBuilder
.Append(documentNode.NavigateUri[i]);
854
_rtfBuilder
.Append("\" }}{\\fldrslt {");
858
_rtfBuilder
.Append(documentNode.Content);
885
_rtfBuilder
.Append("}}}");
891
_rtfBuilder
.Append('}');
897
_rtfBuilder
.Append('{');
919
_rtfBuilder
.Append("\\par");
923
_rtfBuilder
.Append('}');
924
_rtfBuilder
.Append("\r\n");
937
_rtfBuilder
.Append('{');
942
_rtfBuilder
.Append("\\lang");
943
_rtfBuilder
.Append(fsThis.Lang.ToString(CultureInfo.InvariantCulture));
949
_rtfBuilder
.Append("\\rtlpar");
955
_rtfBuilder
.Append(' ');
961
_rtfBuilder
.Append("\\cf");
962
_rtfBuilder
.Append(fsThis.CF.ToString(CultureInfo.InvariantCulture));
971
_rtfBuilder
.Append("\\ql");
975
_rtfBuilder
.Append("\\qr");
982
_rtfBuilder
.Append("\\qr");
986
_rtfBuilder
.Append("\\ql");
991
_rtfBuilder
.Append("\\qc");
995
_rtfBuilder
.Append("\\qj");
1002
_rtfBuilder
.Append("\\sl");
1003
_rtfBuilder
.Append(fsThis.SL.ToString(CultureInfo.InvariantCulture));
1004
_rtfBuilder
.Append("\\slmult0");
1020
_rtfBuilder
.Append('}');
1021
_rtfBuilder
.Append("\r\n");
1034
_rtfBuilder
.Append('{');
1042
_rtfBuilder
.Append("\\intbl");
1047
_rtfBuilder
.Append(' ');
1053
_rtfBuilder
.Append(' ');
1061
_rtfBuilder
.Append("\\rtlpar");
1079
_rtfBuilder
.Append("\\itap");
1080
_rtfBuilder
.Append(fsThis.ITAP.ToString(CultureInfo.InvariantCulture));
1084
_rtfBuilder
.Append("\\li");
1085
_rtfBuilder
.Append(fsThis.LI.ToString(CultureInfo.InvariantCulture));
1086
_rtfBuilder
.Append("\\ri");
1087
_rtfBuilder
.Append(fsThis.RI.ToString(CultureInfo.InvariantCulture));
1088
_rtfBuilder
.Append("\\sa");
1089
_rtfBuilder
.Append(fsThis.SA.ToString(CultureInfo.InvariantCulture));
1090
_rtfBuilder
.Append("\\sb");
1091
_rtfBuilder
.Append(fsThis.SB.ToString(CultureInfo.InvariantCulture));
1096
_rtfBuilder
.Append(fsThis.ParaBorder.RTFEncoding);
1102
_rtfBuilder
.Append("\\jclisttab\\tx");
1103
_rtfBuilder
.Append(fsThis.LI.ToString(CultureInfo.InvariantCulture));
1104
_rtfBuilder
.Append("\\fi-360");
1108
_rtfBuilder
.Append("\\fi");
1109
_rtfBuilder
.Append(fsThis.FI.ToString(CultureInfo.InvariantCulture));
1118
_rtfBuilder
.Append("\\ql");
1122
_rtfBuilder
.Append("\\qr");
1128
_rtfBuilder
.Append("\\qr");
1132
_rtfBuilder
.Append("\\ql");
1136
_rtfBuilder
.Append("\\qc");
1139
_rtfBuilder
.Append("\\qj");
1146
_rtfBuilder
.Append("\\cbpat");
1147
_rtfBuilder
.Append(fsThis.CBPara.ToString(CultureInfo.InvariantCulture));
1153
_rtfBuilder
.Append("\\sl");
1154
_rtfBuilder
.Append(fsThis.SL.ToString(CultureInfo.InvariantCulture));
1155
_rtfBuilder
.Append("\\slmult0");
1165
_rtfBuilder
.Append("\\nestcell");
1166
_rtfBuilder
.Append("{\\nonesttables\\par}");
1170
_rtfBuilder
.Append("\\cell");
1172
_rtfBuilder
.Append("\r\n");
1176
_rtfBuilder
.Append("\\par");
1178
_rtfBuilder
.Append('}');
1179
_rtfBuilder
.Append("\r\n");
1239
_rtfBuilder
.Append("\\fs");
1240
_rtfBuilder
.Append(fsThis.FontSize.ToString(CultureInfo.InvariantCulture));
1245
_rtfBuilder
.Append("\\f");
1246
_rtfBuilder
.Append(fsThis.Font.ToString(CultureInfo.InvariantCulture));
1251
_rtfBuilder
.Append("\\b");
1256
_rtfBuilder
.Append("\\i");
1261
_rtfBuilder
.Append("\\ul");
1266
_rtfBuilder
.Append("\\strike");
1271
_rtfBuilder
.Append("\\cf");
1272
_rtfBuilder
.Append(fsThis.CF.ToString(CultureInfo.InvariantCulture));
1298
_rtfBuilder
.Append("{\\listtext ");
1299
_rtfBuilder
.Append(dnThis.ListLabel);
1303
_rtfBuilder
.Append('.');
1305
_rtfBuilder
.Append("\\tab}");
1310
_rtfBuilder
.Append("\\ls");
1311
_rtfBuilder
.Append(fsThis.ILS.ToString(CultureInfo.InvariantCulture));
1316
_rtfBuilder
.Append("\\ilvl");
1317
_rtfBuilder
.Append(fsThis.ILVL.ToString(CultureInfo.InvariantCulture));
1323
_rtfBuilder
.Append("{\\pntext ");
1324
_rtfBuilder
.Append(dnThis.ListLabel);
1328
_rtfBuilder
.Append('.');
1330
_rtfBuilder
.Append("\\tab}{\\*\\pn");
1331
_rtfBuilder
.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker));
1334
_rtfBuilder
.Append("\\pnlvl");
1335
_rtfBuilder
.Append(fsThis.ListLevel.ToString(CultureInfo.InvariantCulture));
1339
_rtfBuilder
.Append("\\pnhang");
1343
_rtfBuilder
.Append("\\pnstart");
1344
_rtfBuilder
.Append(fsThis.StartIndex.ToString(CultureInfo.InvariantCulture));
1348
_rtfBuilder
.Append("{\\pntxtb\\'B7}}");
1352
_rtfBuilder
.Append("{\\pntxta }{\\pntxtb }}");
1356
_rtfBuilder
.Append("{\\pntxta .}}");
1377
_rtfBuilder
.Append("\r\n");
1378
_rtfBuilder
.Append('{');
1387
_rtfBuilder
.Append("\\intbl\\itap");
1388
_rtfBuilder
.Append(nDepth.ToString(CultureInfo.InvariantCulture));
1395
_rtfBuilder
.Append("\\intbl\\itap");
1396
_rtfBuilder
.Append(nDepth.ToString(CultureInfo.InvariantCulture));
1398
_rtfBuilder
.Append('{');
1401
_rtfBuilder
.Append("\\*\\nesttableprops");
1409
_rtfBuilder
.Append("\\nestrow");
1413
_rtfBuilder
.Append("\\row");
1416
_rtfBuilder
.Append("}}");
1417
_rtfBuilder
.Append("\r\n");
1422
_rtfBuilder
.Append("\\trowd");
1436
_rtfBuilder
.Append("\\trleft");
1437
_rtfBuilder
.Append(s);
1438
_rtfBuilder
.Append("\\trgaph-");
1439
_rtfBuilder
.Append(s);
1443
_rtfBuilder
.Append("\\trgaph0");
1444
_rtfBuilder
.Append("\\trleft0");
1449
_rtfBuilder
.Append("\\trql");
1452
_rtfBuilder
.Append("\\rtlrow");
1456
_rtfBuilder
.Append("\\ltrrow");
1487
_rtfBuilder
.Append("\\trftsWidth1");
1488
_rtfBuilder
.Append("\\trftsWidthB3");
1493
_rtfBuilder
.Append("\\trpaddl10");
1494
_rtfBuilder
.Append("\\trpaddr10");
1495
_rtfBuilder
.Append("\\trpaddb10");
1496
_rtfBuilder
.Append("\\trpaddt10");
1497
_rtfBuilder
.Append("\\trpaddfl3");
1498
_rtfBuilder
.Append("\\trpaddfr3");
1499
_rtfBuilder
.Append("\\trpaddft3");
1500
_rtfBuilder
.Append("\\trpaddfb3");
1523
_rtfBuilder
.Append('{');
1530
_rtfBuilder
.Append('}');
1540
_rtfBuilder
.Append("\\clvmgf");
1544
_rtfBuilder
.Append("\\clvmrg");
1557
_rtfBuilder
.Append("\\clvertalt");
1600
_rtfBuilder
.Append("\\clcbpat");
1601
_rtfBuilder
.Append(fs.CBPara.ToString(CultureInfo.InvariantCulture));
1641
_rtfBuilder
.Append(cfSpanned.RTFEncodingForWidth);
1655
_rtfBuilder
.Append(cf.RTFEncodingForWidth);
1662
_rtfBuilder
.Append("\\clftsWidth1");
1663
_rtfBuilder
.Append("\\cellx");
1667
_rtfBuilder
.Append(cellX.ToString(CultureInfo.InvariantCulture));
1739
_rtfBuilder
.Append(borderControlWord);
1740
_rtfBuilder
.Append(bf.RTFEncoding);
1967
_rtfBuilder
.Append(nested ? "\\nestcell" : "\\cell");
1968
_rtfBuilder
.Append("\r\n");
1977
_rtfBuilder
.Append("\\loch\\hich\\dbch\\pard\\plain\\ltrpar\\itap0");
1993
_rtfBuilder
.Append('}');
2047
_rtfBuilder
.Append("{\\*\\shppict{\\pict");
2105
_rtfBuilder
.Append("\\dn");
2108
_rtfBuilder
.Append(
2114
_rtfBuilder
.Append("\\picwgoal");
2115
_rtfBuilder
.Append(Converters.PxToTwipRounded(imageNaturalSize.Width * scaleFactor.Width).ToString(CultureInfo.InvariantCulture));
2118
_rtfBuilder
.Append("\\pichgoal");
2119
_rtfBuilder
.Append(Converters.PxToTwipRounded(imageNaturalSize.Height * scaleFactor.Height).ToString(CultureInfo.InvariantCulture));
2129
_rtfBuilder
.Append("\\pngblip");
2133
_rtfBuilder
.Append("\\jpegblip");
2138
_rtfBuilder
.Append("\r\n");
2147
_rtfBuilder
.Append(imageHexDataString);
2151
_rtfBuilder
.Append("}}");