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