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)
108return _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(' '); 542XamlParserHelper.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("}}");