17 writes to FormatState
PresentationFramework (17)
System\Windows\Documents\RtfToXamlReader.cs (15)
6379FormatState = new FormatState(dn.Parent.FormatState) 7307dnNewTable.FormatState = new FormatState(dn.FormatState); 8363FormatState = new FormatState(_converterState.PreviousTopFormatState(0)) 8472FormatState = new FormatState(_converterState.PreviousTopFormatState(0)) 8685FormatState = formatState 8879FormatState = new FormatState(fsCur), 8895FormatState = new FormatState(fsCur), 9882FormatState = new FormatState(formatState) 9901FormatState = new FormatState(dnChild.FormatState) 10187FormatState = new FormatState(formatState) 10356dn.FormatState = new FormatState(formatState); 10465FormatState = new FormatState(formatState) 11032FormatState = new FormatState(formatState), 11537FormatState = new FormatState(formatState) 11559FormatState = 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)
4758FormatState.SetCharDefaults(); 4759FormatState.Font = fsOrig.Font; 4760FormatState.FontSize = fsOrig.FontSize; 4761FormatState.Bold = fsOrig.Bold; 4762FormatState.Italic = fsOrig.Italic; 4779FormatState fsThis = FormatState; 4794FormatState fsThis = FormatState; 5121if (FormatState.HasRowFormat) 5123if (FormatState.RowFormat.Dir == DirState.DirRTL) 5128RowFormat rf = FormatState.RowFormat; 5151Debug.Assert(dnRow != null && dnRow.FormatState.RowFormat != null); 5153if (dnRow != null && dnRow.FormatState.HasRowFormat) 5156CellFormat cf = dnRow.FormatState.RowFormat.NthCellFormat(nCol); 5205FormatState fsThis = FormatState; 5280if (dnList != null && dnList.FormatState.Marker != MarkerStyle.MarkerHidden) 5301xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5305if (FormatState.StartIndex > 0 && FormatState.StartIndex != 1) 5308xamlStringBuilder.Append(FormatState.StartIndex.ToString(CultureInfo.InvariantCulture)); 5332if (FormatState.HasRowFormat) 5334prevX = FormatState.RowFormat.Trleft; 5389FormatState fsThis = this.FormatState; 5588RowFormat rf = dnRow.FormatState.RowFormat; 5901return dnPa.FormatState; 6043return FormatState.DirChar; 6049if (FormatState.HasRowFormat) 6051return FormatState.RowFormat.Dir; 6058return FormatState.DirPara; 6097return ParentXamlDir == DirState.DirLTR ? FormatState.LI : FormatState.RI; 6103FormatState.LI = value; 6107FormatState.RI = value; 6116return ParentXamlDir == DirState.DirLTR ? FormatState.RI : FormatState.LI; 6237if (!cs.Row.FormatState.RowFormat.IsVMerge) 6367|| dnn.FormatState.DirChar != dn.FormatState.DirChar 6379FormatState = new FormatState(dn.Parent.FormatState) 6381dnNewDir.FormatState.DirChar = dn.FormatState.DirChar; 6784ml.AddEntry(dn.FormatState.Marker, dn.FormatState.ILS, 6785dn.FormatState.StartIndex, 6786dn.FormatState.StartIndexDefault, dn.VirtualListLevel); 6837Marker = dnList.FormatState.Marker, 6838StartIndexOverride = dnList.FormatState.StartIndex, 6839StartIndexDefault = dnList.FormatState.StartIndexDefault, 6841ILS = dnList.FormatState.ILS 7258ds = ddn.FormatState.DirPara; 7260else if (ds != ddn.FormatState.DirPara) 7276ddn.FormatState.DirPara = ds; 7307dnNewTable.FormatState = new FormatState(dn.FormatState); 7308dnNewTable.FormatState.RowFormat = EntryAt(nUnfilledRowIndex).FormatState.RowFormat; 7343RowFormat rf = dn.FormatState.RowFormat; 7443RowFormat rf = dnRow.FormatState.RowFormat; 8067switch (dn.FormatState.RtfDestination) 8082switch (dn.FormatState.RtfDestination) 8591dn.FormatState.FontSize = (long)((d * 2) + 0.5); 8614dn.FormatState.Font = _converterState.FontTable.DefineEntryByName(name); 9901FormatState = new FormatState(dnChild.FormatState) 9903dn.ConstrainFontPropagation(dn.FormatState); 10038dnRow.FormatState.RowFormat = new RowFormat(formatState.RowFormat); 10039dnRow.FormatState.RowFormat.CanonicalizeWidthsFromRTF(); 10046if (!dnTable.FormatState.HasRowFormat) 10048dnTable.FormatState.RowFormat = dnRow.FormatState.RowFormat; 11323dnPara.FormatState.FI = 0; 11525if (!dnTop.FormatState.IsEqual(formatState)) 11718dnList.FormatState.Marker = mle.Marker; 11719dnList.FormatState.StartIndex = mle.StartIndexToUse; 11720dnList.FormatState.StartIndexDefault = mle.StartIndexDefault; 11722dnList.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;