17 writes to FormatState
PresentationFramework (17)
System\Windows\Documents\RtfToXamlReader.cs (15)
6370FormatState = new FormatState(dn.Parent.FormatState) 7298dnNewTable.FormatState = new FormatState(dn.FormatState); 8354FormatState = new FormatState(_converterState.PreviousTopFormatState(0)) 8463FormatState = new FormatState(_converterState.PreviousTopFormatState(0)) 8676FormatState = formatState 8870FormatState = new FormatState(fsCur), 8886FormatState = new FormatState(fsCur), 9867FormatState = new FormatState(formatState) 9886FormatState = new FormatState(dnChild.FormatState) 10166FormatState = new FormatState(formatState) 10320dn.FormatState = new FormatState(formatState); 10429FormatState = new FormatState(formatState) 10900FormatState = new FormatState(formatState), 11405FormatState = new FormatState(formatState) 11427FormatState = new FormatState(formatState)
System\Windows\Documents\XamlToRtfWriter.cs (2)
1768dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1826dnNew.FormatState = new FormatState(dnSpanningCell.FormatState);
180 references to FormatState
PresentationFramework (180)
System\Windows\Documents\RtfToXamlReader.cs (73)
4749FormatState.SetCharDefaults(); 4750FormatState.Font = fsOrig.Font; 4751FormatState.FontSize = fsOrig.FontSize; 4752FormatState.Bold = fsOrig.Bold; 4753FormatState.Italic = fsOrig.Italic; 4770FormatState fsThis = FormatState; 4785FormatState fsThis = FormatState; 5112if (FormatState.HasRowFormat) 5114if (FormatState.RowFormat.Dir == DirState.DirRTL) 5119RowFormat rf = FormatState.RowFormat; 5142Debug.Assert(dnRow != null && dnRow.FormatState.RowFormat != null); 5144if (dnRow != null && dnRow.FormatState.HasRowFormat) 5147CellFormat cf = dnRow.FormatState.RowFormat.NthCellFormat(nCol); 5196FormatState fsThis = FormatState; 5271if (dnList != null && dnList.FormatState.Marker != MarkerStyle.MarkerHidden) 5292xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5296if (FormatState.StartIndex > 0 && FormatState.StartIndex != 1) 5299xamlStringBuilder.Append(FormatState.StartIndex.ToString(CultureInfo.InvariantCulture)); 5323if (FormatState.HasRowFormat) 5325prevX = FormatState.RowFormat.Trleft; 5380FormatState fsThis = this.FormatState; 5579RowFormat rf = dnRow.FormatState.RowFormat; 5892return dnPa.FormatState; 6034return FormatState.DirChar; 6040if (FormatState.HasRowFormat) 6042return FormatState.RowFormat.Dir; 6049return FormatState.DirPara; 6088return ParentXamlDir == DirState.DirLTR ? FormatState.LI : FormatState.RI; 6094FormatState.LI = value; 6098FormatState.RI = value; 6107return ParentXamlDir == DirState.DirLTR ? FormatState.RI : FormatState.LI; 6228if (!cs.Row.FormatState.RowFormat.IsVMerge) 6358|| dnn.FormatState.DirChar != dn.FormatState.DirChar 6370FormatState = new FormatState(dn.Parent.FormatState) 6372dnNewDir.FormatState.DirChar = dn.FormatState.DirChar; 6775ml.AddEntry(dn.FormatState.Marker, dn.FormatState.ILS, 6776dn.FormatState.StartIndex, 6777dn.FormatState.StartIndexDefault, dn.VirtualListLevel); 6828Marker = dnList.FormatState.Marker, 6829StartIndexOverride = dnList.FormatState.StartIndex, 6830StartIndexDefault = dnList.FormatState.StartIndexDefault, 6832ILS = dnList.FormatState.ILS 7249ds = ddn.FormatState.DirPara; 7251else if (ds != ddn.FormatState.DirPara) 7267ddn.FormatState.DirPara = ds; 7298dnNewTable.FormatState = new FormatState(dn.FormatState); 7299dnNewTable.FormatState.RowFormat = EntryAt(nUnfilledRowIndex).FormatState.RowFormat; 7334RowFormat rf = dn.FormatState.RowFormat; 7434RowFormat rf = dnRow.FormatState.RowFormat; 8058switch (dn.FormatState.RtfDestination) 8073switch (dn.FormatState.RtfDestination) 8582dn.FormatState.FontSize = (long)((d * 2) + 0.5); 8605dn.FormatState.Font = _converterState.FontTable.DefineEntryByName(name); 9886FormatState = new FormatState(dnChild.FormatState) 9888dn.ConstrainFontPropagation(dn.FormatState); 10023dnRow.FormatState.RowFormat = new RowFormat(formatState.RowFormat); 10024dnRow.FormatState.RowFormat.CanonicalizeWidthsFromRTF(); 10031if (!dnTable.FormatState.HasRowFormat) 10033dnTable.FormatState.RowFormat = dnRow.FormatState.RowFormat; 11191dnPara.FormatState.FI = 0; 11393if (!dnTop.FormatState.IsEqual(formatState)) 11586dnList.FormatState.Marker = mle.Marker; 11587dnList.FormatState.StartIndex = mle.StartIndexToUse; 11588dnList.FormatState.StartIndexDefault = mle.StartIndexDefault; 11590dnList.FormatState.ILS = mle.ILS;
System\Windows\Documents\XamlToRtfWriter.cs (107)
281MarkerStyle marker = dnList.FormatState.Marker; 282long nStartIndex = dnList.FormatState.StartIndex; 320dn.FormatState.ILVL = iLevel - 1; 322dn.FormatState.ILS = j + 1; 328if (dnList.FormatState.PNLVL < iLevel) 330dnList.FormatState.PNLVL = iLevel; 332if (dnList.FormatState.ILS == -1) 334dnList.FormatState.ILS = dn.FormatState.ILS; 336else if (dnList.FormatState.ILS != dn.FormatState.ILS) 338dnList.FormatState.ILS = 0; 362long li = dn.FormatState.LI; 363long ri = dn.FormatState.RI; 374li += dnParent.FormatState.LI; 375ri += dnParent.FormatState.RI; 379dn.FormatState.LI = li; 380dn.FormatState.RI = ri; 429openCounts[openLists.Count - 1] = dn.FormatState.StartIndex - 1; 430openStarts[openLists.Count - 1] = dn.FormatState.StartIndex; 444if (dn.FormatState.ListLevel > 0 && openLists.Count > 0) 449dn.FormatState.StartIndex = nStart; // Record this here for later use in \\pnstart 450dn.ListLabel = Converters.MarkerCountToString(dnList.FormatState.Marker, nCount); 482dn.FormatState.ITAP = iLevel; 486dn.FormatState.IsInTable = true; 502if (dn.FormatState.Font >= 0) 505_rtfBuilder.Append(dn.FormatState.Font.ToString(CultureInfo.InvariantCulture)); 692FormatState fsThis = documentNode.FormatState; 694? documentNode.Parent.FormatState 932FormatState fsThis = dnThis.FormatState; 933FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.FormatState : FormatState.EmptyFormatState; 1029FormatState fsThis = dnThis.FormatState; 1030FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.FormatState : FormatState.EmptyFormatState; 1201fsAll = dnChild.FormatState.FontSize; 1203else if (fsAll != dnChild.FormatState.FontSize) 1209fontAll = dnChild.FormatState.Font; 1211else if (fontAll != dnChild.FormatState.Font) 1290if (bNewStyle && dnList.FormatState.PNLVL == 1) 1299if (dnList.FormatState.Marker != MarkerStyle.MarkerBullet 1300&& dnList.FormatState.Marker != MarkerStyle.MarkerNone) 1324if (dnList.FormatState.Marker != MarkerStyle.MarkerBullet 1325&& dnList.FormatState.Marker != MarkerStyle.MarkerNone) 1330_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker)); 1331if (fsThis.ListLevel > 0 && dnList.FormatState.PNLVL > 1) 1345if (dnList.FormatState.Marker == MarkerStyle.MarkerBullet) 1349else if (dnList.FormatState.Marker == MarkerStyle.MarkerNone) 1433long l = dirPa == DirState.DirLTR ? dnTable.FormatState.LI : dnTable.FormatState.RI; 1470if (dnCell.FormatState.HasRowFormat) 1472CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1535if (dnCell.FormatState.HasRowFormat) 1537if (dnCell.FormatState.RowFormat.RowCellFormat.IsVMergeFirst) 1541else if (dnCell.FormatState.RowFormat.RowCellFormat.IsVMerge) 1561if (dnCell.FormatState.HasRowFormat) 1563CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1588if (dnCell.FormatState.CBPara >= 0) 1590fs = dnCell.FormatState; 1592else if (dnCell.Parent != null && dnCell.Parent.FormatState.CBPara >= 0) 1594fs = dnCell.Parent.FormatState; 1614if (dnTable.FormatState.HasRowFormat) 1616RowFormat rf = dnTable.FormatState.RowFormat; 1768dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1769if (dnSpanningCell.FormatState.HasRowFormat) 1771dnNew.FormatState.RowFormat = new RowFormat(dnSpanningCell.FormatState.RowFormat); 1773dnNew.FormatState.RowFormat.RowCellFormat.IsVMergeFirst = false; 1774dnNew.FormatState.RowFormat.RowCellFormat.IsVMerge = true; 1810CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1826dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1827if (dnSpanningCell.FormatState.HasRowFormat) 1829dnNew.FormatState.RowFormat = new RowFormat(dnSpanningCell.FormatState.RowFormat); 1831dnNew.FormatState.RowFormat.RowCellFormat.IsVMergeFirst = false; 1832dnNew.FormatState.RowFormat.RowCellFormat.IsVMerge = true; 1904if (dnThis.FormatState.HasRowFormat) 1906dnThis.FormatState.RowFormat.Trleft = dnThis.FormatState.LI; 1907dnThis.FormatState.RowFormat.CanonicalizeWidthsFromXaml(); 2020using (Stream imageStream = _wpfPayload.GetImageStream(documentNode.FormatState.ImageSource)) 2023RtfImageFormat imageFormat = GetImageFormatFromImageSourceName(documentNode.FormatState.ImageSource); 2049Size imageInputSize = new Size(documentNode.FormatState.ImageWidth, documentNode.FormatState.ImageHeight); 2064System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.FormatState.ImageStretch); 2065System.Windows.Controls.StretchDirection imageStretchDirection = GetImageStretchDirection(documentNode.FormatState.ImageStretchDirection); 2102if (documentNode.FormatState.IncludeImageBaselineOffset) 2109documentNode.FormatState.ImageBaselineOffset)); 2464dn.InheritFormatState(dnTop.FormatState); 2472FontTableEntry e = converterState.FontTable.FindEntryByIndex((int)dn.FormatState.Font); 2799documentNode.InheritFormatState(dnTop.FormatState); 2806documentNode.FormatState.Bold = true; 2812documentNode.FormatState.UL = ULState.ULNormal; 2815documentNode.FormatState.CF = lColor; 2821documentNode.FormatState.Italic = true; 2825documentNode.FormatState.UL = ULState.ULNormal; 2829documentNode.FormatState.Marker = MarkerStyle.MarkerBullet; 2830documentNode.FormatState.StartIndex = 1; 2833documentNode.FormatState.LI = 720; 2855FormatState formatState = documentNode.FormatState; 3077RowFormat rf = dnTable.FormatState.RowFormat; 3089documentNode.FormatState.ImageWidth = d; 3098documentNode.FormatState.ImageHeight = d; 3107documentNode.FormatState.ImageBaselineOffset = d; 3108documentNode.FormatState.IncludeImageBaselineOffset = true; 3115documentNode.FormatState.ImageSource = valueString; 3122documentNode.FormatState.ImageSource = valueString; 3129documentNode.FormatState.ImageStretch = valueString; 3136documentNode.FormatState.ImageStretchDirection = valueString;