17 writes to FormatState
PresentationFramework (17)
System\Windows\Documents\RtfToXamlReader.cs (15)
6367dnNewDir.FormatState = new FormatState(dn.Parent.FormatState); 7293dnNewTable.FormatState = new FormatState(dn.FormatState); 8346dn.FormatState = new FormatState(_converterState.PreviousTopFormatState(0)); 8453dn.FormatState = new FormatState(_converterState.PreviousTopFormatState(0)); 8665dnImage.FormatState = formatState; 8857dnEnd.FormatState = new FormatState(fsCur); 8871dnEnd.FormatState = new FormatState(fsCur); 9856dn.FormatState = new FormatState(formatState); 9873dn.FormatState = new FormatState(dnChild.FormatState); 10158dnl.FormatState = new FormatState(formatState); 10326dn.FormatState = new FormatState(formatState); 10435dnl.FormatState = new FormatState(formatState); 11004dnf.FormatState = new FormatState(formatState); 11507dnTop.FormatState = new FormatState(formatState); 11527documentNode.FormatState = new FormatState(formatState);
System\Windows\Documents\XamlToRtfWriter.cs (2)
1770dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1828dnNew.FormatState = new FormatState(dnSpanningCell.FormatState);
180 references to FormatState
PresentationFramework (180)
System\Windows\Documents\RtfToXamlReader.cs (73)
4751FormatState.SetCharDefaults(); 4752FormatState.Font = fsOrig.Font; 4753FormatState.FontSize = fsOrig.FontSize; 4754FormatState.Bold = fsOrig.Bold; 4755FormatState.Italic = fsOrig.Italic; 4772FormatState fsThis = FormatState; 4787FormatState fsThis = FormatState; 5114if (FormatState.HasRowFormat) 5116if (FormatState.RowFormat.Dir == DirState.DirRTL) 5121RowFormat rf = FormatState.RowFormat; 5144Debug.Assert(dnRow != null && dnRow.FormatState.RowFormat != null); 5146if (dnRow != null && dnRow.FormatState.HasRowFormat) 5149CellFormat cf = dnRow.FormatState.RowFormat.NthCellFormat(nCol); 5198FormatState fsThis = FormatState; 5273if (dnList != null && dnList.FormatState.Marker != MarkerStyle.MarkerHidden) 5294xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5298if (FormatState.StartIndex > 0 && FormatState.StartIndex != 1) 5301xamlStringBuilder.Append(FormatState.StartIndex.ToString(CultureInfo.InvariantCulture)); 5325if (FormatState.HasRowFormat) 5327prevX = FormatState.RowFormat.Trleft; 5382FormatState fsThis = this.FormatState; 5581RowFormat rf = dnRow.FormatState.RowFormat; 5890return dnPa.FormatState; 6032return FormatState.DirChar; 6038if (FormatState.HasRowFormat) 6040return FormatState.RowFormat.Dir; 6047return FormatState.DirPara; 6086return ParentXamlDir == DirState.DirLTR ? FormatState.LI : FormatState.RI; 6092FormatState.LI = value; 6096FormatState.RI = value; 6105return ParentXamlDir == DirState.DirLTR ? FormatState.RI : FormatState.LI; 6226if (!cs.Row.FormatState.RowFormat.IsVMerge) 6356|| dnn.FormatState.DirChar != dn.FormatState.DirChar 6367dnNewDir.FormatState = new FormatState(dn.Parent.FormatState); 6368dnNewDir.FormatState.DirChar = dn.FormatState.DirChar; 6771ml.AddEntry(dn.FormatState.Marker, dn.FormatState.ILS, 6772dn.FormatState.StartIndex, 6773dn.FormatState.StartIndexDefault, dn.VirtualListLevel); 6824mle.Marker = dnList.FormatState.Marker; 6825mle.StartIndexOverride = dnList.FormatState.StartIndex; 6826mle.StartIndexDefault = dnList.FormatState.StartIndexDefault; 6828mle.ILS = dnList.FormatState.ILS; 7244ds = ddn.FormatState.DirPara; 7246else if (ds != ddn.FormatState.DirPara) 7262ddn.FormatState.DirPara = ds; 7293dnNewTable.FormatState = new FormatState(dn.FormatState); 7294dnNewTable.FormatState.RowFormat = EntryAt(nUnfilledRowIndex).FormatState.RowFormat; 7329RowFormat rf = dn.FormatState.RowFormat; 7429RowFormat rf = dnRow.FormatState.RowFormat; 8051switch (dn.FormatState.RtfDestination) 8066switch (dn.FormatState.RtfDestination) 8571dn.FormatState.FontSize = (long)((d * 2) + 0.5); 8594dn.FormatState.Font = _converterState.FontTable.DefineEntryByName(name); 9873dn.FormatState = new FormatState(dnChild.FormatState); 9874dn.ConstrainFontPropagation(dn.FormatState); 10009dnRow.FormatState.RowFormat = new RowFormat(formatState.RowFormat); 10010dnRow.FormatState.RowFormat.CanonicalizeWidthsFromRTF(); 10017if (!dnTable.FormatState.HasRowFormat) 10019dnTable.FormatState.RowFormat = dnRow.FormatState.RowFormat; 11294dnPara.FormatState.FI = 0; 11496if (!dnTop.FormatState.IsEqual(formatState)) 11685dnList.FormatState.Marker = mle.Marker; 11686dnList.FormatState.StartIndex = mle.StartIndexToUse; 11687dnList.FormatState.StartIndexDefault = mle.StartIndexDefault; 11689dnList.FormatState.ILS = mle.ILS;
System\Windows\Documents\XamlToRtfWriter.cs (107)
283MarkerStyle marker = dnList.FormatState.Marker; 284long nStartIndex = dnList.FormatState.StartIndex; 322dn.FormatState.ILVL = iLevel - 1; 324dn.FormatState.ILS = j + 1; 330if (dnList.FormatState.PNLVL < iLevel) 332dnList.FormatState.PNLVL = iLevel; 334if (dnList.FormatState.ILS == -1) 336dnList.FormatState.ILS = dn.FormatState.ILS; 338else if (dnList.FormatState.ILS != dn.FormatState.ILS) 340dnList.FormatState.ILS = 0; 364long li = dn.FormatState.LI; 365long ri = dn.FormatState.RI; 376li += dnParent.FormatState.LI; 377ri += dnParent.FormatState.RI; 381dn.FormatState.LI = li; 382dn.FormatState.RI = ri; 431openCounts[openLists.Count - 1] = dn.FormatState.StartIndex - 1; 432openStarts[openLists.Count - 1] = dn.FormatState.StartIndex; 446if (dn.FormatState.ListLevel > 0 && openLists.Count > 0) 451dn.FormatState.StartIndex = nStart; // Record this here for later use in \\pnstart 452dn.ListLabel = Converters.MarkerCountToString(dnList.FormatState.Marker, nCount); 484dn.FormatState.ITAP = iLevel; 488dn.FormatState.IsInTable = true; 504if (dn.FormatState.Font >= 0) 507_rtfBuilder.Append(dn.FormatState.Font.ToString(CultureInfo.InvariantCulture)); 694FormatState fsThis = documentNode.FormatState; 696? documentNode.Parent.FormatState 934FormatState fsThis = dnThis.FormatState; 935FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.FormatState : FormatState.EmptyFormatState; 1031FormatState fsThis = dnThis.FormatState; 1032FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.FormatState : FormatState.EmptyFormatState; 1203fsAll = dnChild.FormatState.FontSize; 1205else if (fsAll != dnChild.FormatState.FontSize) 1211fontAll = dnChild.FormatState.Font; 1213else if (fontAll != dnChild.FormatState.Font) 1292if (bNewStyle && dnList.FormatState.PNLVL == 1) 1301if (dnList.FormatState.Marker != MarkerStyle.MarkerBullet 1302&& dnList.FormatState.Marker != MarkerStyle.MarkerNone) 1326if (dnList.FormatState.Marker != MarkerStyle.MarkerBullet 1327&& dnList.FormatState.Marker != MarkerStyle.MarkerNone) 1332_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker)); 1333if (fsThis.ListLevel > 0 && dnList.FormatState.PNLVL > 1) 1347if (dnList.FormatState.Marker == MarkerStyle.MarkerBullet) 1351else if (dnList.FormatState.Marker == MarkerStyle.MarkerNone) 1435long l = dirPa == DirState.DirLTR ? dnTable.FormatState.LI : dnTable.FormatState.RI; 1472if (dnCell.FormatState.HasRowFormat) 1474CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1537if (dnCell.FormatState.HasRowFormat) 1539if (dnCell.FormatState.RowFormat.RowCellFormat.IsVMergeFirst) 1543else if (dnCell.FormatState.RowFormat.RowCellFormat.IsVMerge) 1563if (dnCell.FormatState.HasRowFormat) 1565CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1590if (dnCell.FormatState.CBPara >= 0) 1592fs = dnCell.FormatState; 1594else if (dnCell.Parent != null && dnCell.Parent.FormatState.CBPara >= 0) 1596fs = dnCell.Parent.FormatState; 1616if (dnTable.FormatState.HasRowFormat) 1618RowFormat rf = dnTable.FormatState.RowFormat; 1770dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1771if (dnSpanningCell.FormatState.HasRowFormat) 1773dnNew.FormatState.RowFormat = new RowFormat(dnSpanningCell.FormatState.RowFormat); 1775dnNew.FormatState.RowFormat.RowCellFormat.IsVMergeFirst = false; 1776dnNew.FormatState.RowFormat.RowCellFormat.IsVMerge = true; 1812CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1828dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1829if (dnSpanningCell.FormatState.HasRowFormat) 1831dnNew.FormatState.RowFormat = new RowFormat(dnSpanningCell.FormatState.RowFormat); 1833dnNew.FormatState.RowFormat.RowCellFormat.IsVMergeFirst = false; 1834dnNew.FormatState.RowFormat.RowCellFormat.IsVMerge = true; 1906if (dnThis.FormatState.HasRowFormat) 1908dnThis.FormatState.RowFormat.Trleft = dnThis.FormatState.LI; 1909dnThis.FormatState.RowFormat.CanonicalizeWidthsFromXaml(); 2022using (Stream imageStream = _wpfPayload.GetImageStream(documentNode.FormatState.ImageSource)) 2025RtfImageFormat imageFormat = GetImageFormatFromImageSourceName(documentNode.FormatState.ImageSource); 2051Size imageInputSize = new Size(documentNode.FormatState.ImageWidth, documentNode.FormatState.ImageHeight); 2066System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.FormatState.ImageStretch); 2067System.Windows.Controls.StretchDirection imageStretchDirection = GetImageStretchDirection(documentNode.FormatState.ImageStretchDirection); 2104if (documentNode.FormatState.IncludeImageBaselineOffset) 2111documentNode.FormatState.ImageBaselineOffset)); 2466dn.InheritFormatState(dnTop.FormatState); 2474FontTableEntry e = converterState.FontTable.FindEntryByIndex((int)dn.FormatState.Font); 2801documentNode.InheritFormatState(dnTop.FormatState); 2808documentNode.FormatState.Bold = true; 2814documentNode.FormatState.UL = ULState.ULNormal; 2817documentNode.FormatState.CF = lColor; 2823documentNode.FormatState.Italic = true; 2827documentNode.FormatState.UL = ULState.ULNormal; 2831documentNode.FormatState.Marker = MarkerStyle.MarkerBullet; 2832documentNode.FormatState.StartIndex = 1; 2835documentNode.FormatState.LI = 720; 2857FormatState formatState = documentNode.FormatState; 3079RowFormat rf = dnTable.FormatState.RowFormat; 3091documentNode.FormatState.ImageWidth = d; 3100documentNode.FormatState.ImageHeight = d; 3109documentNode.FormatState.ImageBaselineOffset = d; 3110documentNode.FormatState.IncludeImageBaselineOffset = true; 3117documentNode.FormatState.ImageSource = valueString; 3124documentNode.FormatState.ImageSource = valueString; 3131documentNode.FormatState.ImageStretch = valueString; 3138documentNode.FormatState.ImageStretchDirection = valueString;