17 writes to FormatState
PresentationFramework (17)
System\Windows\Documents\RtfToXamlReader.cs (15)
6366dnNewDir.FormatState = new FormatState(dn.Parent.FormatState); 7292dnNewTable.FormatState = new FormatState(dn.FormatState); 8345dn.FormatState = new FormatState(_converterState.PreviousTopFormatState(0)); 8452dn.FormatState = new FormatState(_converterState.PreviousTopFormatState(0)); 8664dnImage.FormatState = formatState; 8856dnEnd.FormatState = new FormatState(fsCur); 8870dnEnd.FormatState = new FormatState(fsCur); 9855dn.FormatState = new FormatState(formatState); 9872dn.FormatState = new FormatState(dnChild.FormatState); 10157dnl.FormatState = new FormatState(formatState); 10325dn.FormatState = new FormatState(formatState); 10434dnl.FormatState = new FormatState(formatState); 11003dnf.FormatState = new FormatState(formatState); 11506dnTop.FormatState = new FormatState(formatState); 11526documentNode.FormatState = 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)
4750FormatState.SetCharDefaults(); 4751FormatState.Font = fsOrig.Font; 4752FormatState.FontSize = fsOrig.FontSize; 4753FormatState.Bold = fsOrig.Bold; 4754FormatState.Italic = fsOrig.Italic; 4771FormatState fsThis = FormatState; 4786FormatState fsThis = FormatState; 5113if (FormatState.HasRowFormat) 5115if (FormatState.RowFormat.Dir == DirState.DirRTL) 5120RowFormat rf = FormatState.RowFormat; 5143Debug.Assert(dnRow != null && dnRow.FormatState.RowFormat != null); 5145if (dnRow != null && dnRow.FormatState.HasRowFormat) 5148CellFormat cf = dnRow.FormatState.RowFormat.NthCellFormat(nCol); 5197FormatState fsThis = FormatState; 5272if (dnList != null && dnList.FormatState.Marker != MarkerStyle.MarkerHidden) 5293xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5297if (FormatState.StartIndex > 0 && FormatState.StartIndex != 1) 5300xamlStringBuilder.Append(FormatState.StartIndex.ToString(CultureInfo.InvariantCulture)); 5324if (FormatState.HasRowFormat) 5326prevX = FormatState.RowFormat.Trleft; 5381FormatState fsThis = this.FormatState; 5580RowFormat rf = dnRow.FormatState.RowFormat; 5889return dnPa.FormatState; 6031return FormatState.DirChar; 6037if (FormatState.HasRowFormat) 6039return FormatState.RowFormat.Dir; 6046return FormatState.DirPara; 6085return ParentXamlDir == DirState.DirLTR ? FormatState.LI : FormatState.RI; 6091FormatState.LI = value; 6095FormatState.RI = value; 6104return ParentXamlDir == DirState.DirLTR ? FormatState.RI : FormatState.LI; 6225if (!cs.Row.FormatState.RowFormat.IsVMerge) 6355|| dnn.FormatState.DirChar != dn.FormatState.DirChar 6366dnNewDir.FormatState = new FormatState(dn.Parent.FormatState); 6367dnNewDir.FormatState.DirChar = dn.FormatState.DirChar; 6770ml.AddEntry(dn.FormatState.Marker, dn.FormatState.ILS, 6771dn.FormatState.StartIndex, 6772dn.FormatState.StartIndexDefault, dn.VirtualListLevel); 6823mle.Marker = dnList.FormatState.Marker; 6824mle.StartIndexOverride = dnList.FormatState.StartIndex; 6825mle.StartIndexDefault = dnList.FormatState.StartIndexDefault; 6827mle.ILS = dnList.FormatState.ILS; 7243ds = ddn.FormatState.DirPara; 7245else if (ds != ddn.FormatState.DirPara) 7261ddn.FormatState.DirPara = ds; 7292dnNewTable.FormatState = new FormatState(dn.FormatState); 7293dnNewTable.FormatState.RowFormat = EntryAt(nUnfilledRowIndex).FormatState.RowFormat; 7328RowFormat rf = dn.FormatState.RowFormat; 7428RowFormat rf = dnRow.FormatState.RowFormat; 8050switch (dn.FormatState.RtfDestination) 8065switch (dn.FormatState.RtfDestination) 8570dn.FormatState.FontSize = (long)((d * 2) + 0.5); 8593dn.FormatState.Font = _converterState.FontTable.DefineEntryByName(name); 9872dn.FormatState = new FormatState(dnChild.FormatState); 9873dn.ConstrainFontPropagation(dn.FormatState); 10008dnRow.FormatState.RowFormat = new RowFormat(formatState.RowFormat); 10009dnRow.FormatState.RowFormat.CanonicalizeWidthsFromRTF(); 10016if (!dnTable.FormatState.HasRowFormat) 10018dnTable.FormatState.RowFormat = dnRow.FormatState.RowFormat; 11293dnPara.FormatState.FI = 0; 11495if (!dnTop.FormatState.IsEqual(formatState)) 11684dnList.FormatState.Marker = mle.Marker; 11685dnList.FormatState.StartIndex = mle.StartIndexToUse; 11686dnList.FormatState.StartIndexDefault = mle.StartIndexDefault; 11688dnList.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;