17 writes to FormatState
PresentationFramework (17)
System\Windows\Documents\RtfToXamlReader.cs (15)
6380FormatState = new FormatState(dn.Parent.FormatState) 7308dnNewTable.FormatState = new FormatState(dn.FormatState); 8364FormatState = new FormatState(_converterState.PreviousTopFormatState(0)) 8473FormatState = new FormatState(_converterState.PreviousTopFormatState(0)) 8686FormatState = formatState 8880FormatState = new FormatState(fsCur), 8896FormatState = new FormatState(fsCur), 9883FormatState = new FormatState(formatState) 9902FormatState = new FormatState(dnChild.FormatState) 10188FormatState = new FormatState(formatState) 10357dn.FormatState = new FormatState(formatState); 10466FormatState = new FormatState(formatState) 11033FormatState = new FormatState(formatState), 11538FormatState = new FormatState(formatState) 11560FormatState = new FormatState(formatState)
System\Windows\Documents\XamlToRtfWriter.cs (2)
1769dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1827dnNew.FormatState = new FormatState(dnSpanningCell.FormatState);
180 references to FormatState
PresentationFramework (180)
System\Windows\Documents\RtfToXamlReader.cs (73)
4759FormatState.SetCharDefaults(); 4760FormatState.Font = fsOrig.Font; 4761FormatState.FontSize = fsOrig.FontSize; 4762FormatState.Bold = fsOrig.Bold; 4763FormatState.Italic = fsOrig.Italic; 4780FormatState fsThis = FormatState; 4795FormatState fsThis = FormatState; 5122if (FormatState.HasRowFormat) 5124if (FormatState.RowFormat.Dir == DirState.DirRTL) 5129RowFormat rf = FormatState.RowFormat; 5152Debug.Assert(dnRow != null && dnRow.FormatState.RowFormat != null); 5154if (dnRow != null && dnRow.FormatState.HasRowFormat) 5157CellFormat cf = dnRow.FormatState.RowFormat.NthCellFormat(nCol); 5206FormatState fsThis = FormatState; 5281if (dnList != null && dnList.FormatState.Marker != MarkerStyle.MarkerHidden) 5302xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5306if (FormatState.StartIndex > 0 && FormatState.StartIndex != 1) 5309xamlStringBuilder.Append(FormatState.StartIndex.ToString(CultureInfo.InvariantCulture)); 5333if (FormatState.HasRowFormat) 5335prevX = FormatState.RowFormat.Trleft; 5390FormatState fsThis = this.FormatState; 5589RowFormat rf = dnRow.FormatState.RowFormat; 5902return dnPa.FormatState; 6044return FormatState.DirChar; 6050if (FormatState.HasRowFormat) 6052return FormatState.RowFormat.Dir; 6059return FormatState.DirPara; 6098return ParentXamlDir == DirState.DirLTR ? FormatState.LI : FormatState.RI; 6104FormatState.LI = value; 6108FormatState.RI = value; 6117return ParentXamlDir == DirState.DirLTR ? FormatState.RI : FormatState.LI; 6238if (!cs.Row.FormatState.RowFormat.IsVMerge) 6368|| dnn.FormatState.DirChar != dn.FormatState.DirChar 6380FormatState = new FormatState(dn.Parent.FormatState) 6382dnNewDir.FormatState.DirChar = dn.FormatState.DirChar; 6785ml.AddEntry(dn.FormatState.Marker, dn.FormatState.ILS, 6786dn.FormatState.StartIndex, 6787dn.FormatState.StartIndexDefault, dn.VirtualListLevel); 6838Marker = dnList.FormatState.Marker, 6839StartIndexOverride = dnList.FormatState.StartIndex, 6840StartIndexDefault = dnList.FormatState.StartIndexDefault, 6842ILS = dnList.FormatState.ILS 7259ds = ddn.FormatState.DirPara; 7261else if (ds != ddn.FormatState.DirPara) 7277ddn.FormatState.DirPara = ds; 7308dnNewTable.FormatState = new FormatState(dn.FormatState); 7309dnNewTable.FormatState.RowFormat = EntryAt(nUnfilledRowIndex).FormatState.RowFormat; 7344RowFormat rf = dn.FormatState.RowFormat; 7444RowFormat rf = dnRow.FormatState.RowFormat; 8068switch (dn.FormatState.RtfDestination) 8083switch (dn.FormatState.RtfDestination) 8592dn.FormatState.FontSize = (long)((d * 2) + 0.5); 8615dn.FormatState.Font = _converterState.FontTable.DefineEntryByName(name); 9902FormatState = new FormatState(dnChild.FormatState) 9904dn.ConstrainFontPropagation(dn.FormatState); 10039dnRow.FormatState.RowFormat = new RowFormat(formatState.RowFormat); 10040dnRow.FormatState.RowFormat.CanonicalizeWidthsFromRTF(); 10047if (!dnTable.FormatState.HasRowFormat) 10049dnTable.FormatState.RowFormat = dnRow.FormatState.RowFormat; 11324dnPara.FormatState.FI = 0; 11526if (!dnTop.FormatState.IsEqual(formatState)) 11719dnList.FormatState.Marker = mle.Marker; 11720dnList.FormatState.StartIndex = mle.StartIndexToUse; 11721dnList.FormatState.StartIndexDefault = mle.StartIndexDefault; 11723dnList.FormatState.ILS = mle.ILS;
System\Windows\Documents\XamlToRtfWriter.cs (107)
282MarkerStyle marker = dnList.FormatState.Marker; 283long nStartIndex = dnList.FormatState.StartIndex; 321dn.FormatState.ILVL = iLevel - 1; 323dn.FormatState.ILS = j + 1; 329if (dnList.FormatState.PNLVL < iLevel) 331dnList.FormatState.PNLVL = iLevel; 333if (dnList.FormatState.ILS == -1) 335dnList.FormatState.ILS = dn.FormatState.ILS; 337else if (dnList.FormatState.ILS != dn.FormatState.ILS) 339dnList.FormatState.ILS = 0; 363long li = dn.FormatState.LI; 364long ri = dn.FormatState.RI; 375li += dnParent.FormatState.LI; 376ri += dnParent.FormatState.RI; 380dn.FormatState.LI = li; 381dn.FormatState.RI = ri; 430openCounts[openLists.Count - 1] = dn.FormatState.StartIndex - 1; 431openStarts[openLists.Count - 1] = dn.FormatState.StartIndex; 445if (dn.FormatState.ListLevel > 0 && openLists.Count > 0) 450dn.FormatState.StartIndex = nStart; // Record this here for later use in \\pnstart 451dn.ListLabel = Converters.MarkerCountToString(dnList.FormatState.Marker, nCount); 483dn.FormatState.ITAP = iLevel; 487dn.FormatState.IsInTable = true; 503if (dn.FormatState.Font >= 0) 506_rtfBuilder.Append(dn.FormatState.Font.ToString(CultureInfo.InvariantCulture)); 693FormatState fsThis = documentNode.FormatState; 695? documentNode.Parent.FormatState 933FormatState fsThis = dnThis.FormatState; 934FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.FormatState : FormatState.EmptyFormatState; 1030FormatState fsThis = dnThis.FormatState; 1031FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.FormatState : FormatState.EmptyFormatState; 1202fsAll = dnChild.FormatState.FontSize; 1204else if (fsAll != dnChild.FormatState.FontSize) 1210fontAll = dnChild.FormatState.Font; 1212else if (fontAll != dnChild.FormatState.Font) 1291if (bNewStyle && dnList.FormatState.PNLVL == 1) 1300if (dnList.FormatState.Marker != MarkerStyle.MarkerBullet 1301&& dnList.FormatState.Marker != MarkerStyle.MarkerNone) 1325if (dnList.FormatState.Marker != MarkerStyle.MarkerBullet 1326&& dnList.FormatState.Marker != MarkerStyle.MarkerNone) 1331_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker)); 1332if (fsThis.ListLevel > 0 && dnList.FormatState.PNLVL > 1) 1346if (dnList.FormatState.Marker == MarkerStyle.MarkerBullet) 1350else if (dnList.FormatState.Marker == MarkerStyle.MarkerNone) 1434long l = dirPa == DirState.DirLTR ? dnTable.FormatState.LI : dnTable.FormatState.RI; 1471if (dnCell.FormatState.HasRowFormat) 1473CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1536if (dnCell.FormatState.HasRowFormat) 1538if (dnCell.FormatState.RowFormat.RowCellFormat.IsVMergeFirst) 1542else if (dnCell.FormatState.RowFormat.RowCellFormat.IsVMerge) 1562if (dnCell.FormatState.HasRowFormat) 1564CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1589if (dnCell.FormatState.CBPara >= 0) 1591fs = dnCell.FormatState; 1593else if (dnCell.Parent != null && dnCell.Parent.FormatState.CBPara >= 0) 1595fs = dnCell.Parent.FormatState; 1615if (dnTable.FormatState.HasRowFormat) 1617RowFormat rf = dnTable.FormatState.RowFormat; 1769dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1770if (dnSpanningCell.FormatState.HasRowFormat) 1772dnNew.FormatState.RowFormat = new RowFormat(dnSpanningCell.FormatState.RowFormat); 1774dnNew.FormatState.RowFormat.RowCellFormat.IsVMergeFirst = false; 1775dnNew.FormatState.RowFormat.RowCellFormat.IsVMerge = true; 1811CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1827dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1828if (dnSpanningCell.FormatState.HasRowFormat) 1830dnNew.FormatState.RowFormat = new RowFormat(dnSpanningCell.FormatState.RowFormat); 1832dnNew.FormatState.RowFormat.RowCellFormat.IsVMergeFirst = false; 1833dnNew.FormatState.RowFormat.RowCellFormat.IsVMerge = true; 1905if (dnThis.FormatState.HasRowFormat) 1907dnThis.FormatState.RowFormat.Trleft = dnThis.FormatState.LI; 1908dnThis.FormatState.RowFormat.CanonicalizeWidthsFromXaml(); 2021using (Stream imageStream = _wpfPayload.GetImageStream(documentNode.FormatState.ImageSource)) 2024RtfImageFormat imageFormat = GetImageFormatFromImageSourceName(documentNode.FormatState.ImageSource); 2050Size imageInputSize = new Size(documentNode.FormatState.ImageWidth, documentNode.FormatState.ImageHeight); 2065System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.FormatState.ImageStretch); 2066System.Windows.Controls.StretchDirection imageStretchDirection = GetImageStretchDirection(documentNode.FormatState.ImageStretchDirection); 2103if (documentNode.FormatState.IncludeImageBaselineOffset) 2110documentNode.FormatState.ImageBaselineOffset)); 2465dn.InheritFormatState(dnTop.FormatState); 2473FontTableEntry e = converterState.FontTable.FindEntryByIndex((int)dn.FormatState.Font); 2800documentNode.InheritFormatState(dnTop.FormatState); 2807documentNode.FormatState.Bold = true; 2813documentNode.FormatState.UL = ULState.ULNormal; 2816documentNode.FormatState.CF = lColor; 2822documentNode.FormatState.Italic = true; 2826documentNode.FormatState.UL = ULState.ULNormal; 2830documentNode.FormatState.Marker = MarkerStyle.MarkerBullet; 2831documentNode.FormatState.StartIndex = 1; 2834documentNode.FormatState.LI = 720; 2856FormatState formatState = documentNode.FormatState; 3078RowFormat rf = dnTable.FormatState.RowFormat; 3090documentNode.FormatState.ImageWidth = d; 3099documentNode.FormatState.ImageHeight = d; 3108documentNode.FormatState.ImageBaselineOffset = d; 3109documentNode.FormatState.IncludeImageBaselineOffset = true; 3116documentNode.FormatState.ImageSource = valueString; 3123documentNode.FormatState.ImageSource = valueString; 3130documentNode.FormatState.ImageStretch = valueString; 3137documentNode.FormatState.ImageStretchDirection = valueString;