72 references to Converters
PresentationFramework (72)
System\Windows\Documents\RtfToXamlReader.cs (31)
2142sb.Append(Converters.TwipToPositiveVisiblePxString(BorderAll.EffectiveWidth)); 2146sb.Append(Converters.TwipToPositiveVisiblePxString(BorderLeft.EffectiveWidth)); 2148sb.Append(Converters.TwipToPositiveVisiblePxString(BorderTop.EffectiveWidth)); 2150sb.Append(Converters.TwipToPositiveVisiblePxString(BorderRight.EffectiveWidth)); 2152sb.Append(Converters.TwipToPositiveVisiblePxString(BorderBottom.EffectiveWidth)); 2176sb.Append(Converters.TwipToPositivePxString(Spacing)); 2717sb.Append(Converters.TwipToPositiveVisiblePxString(BorderLeft.EffectiveWidth)); 2719sb.Append(Converters.TwipToPositiveVisiblePxString(BorderTop.EffectiveWidth)); 2721sb.Append(Converters.TwipToPositiveVisiblePxString(BorderRight.EffectiveWidth)); 2723sb.Append(Converters.TwipToPositiveVisiblePxString(BorderBottom.EffectiveWidth)); 2749$" Padding=\"{Converters.TwipToPositivePxString(PaddingLeft)},{Converters.TwipToPositivePxString(PaddingTop)},{Converters.TwipToPositivePxString(PaddingRight)},{Converters.TwipToPositivePxString(PaddingBottom)}\""; 5131xamlStringBuilder.Append(Converters.TwipToPositiveVisiblePxString(cf.SpacingLeft)); 5134xamlStringBuilder.Append(Converters.TwipToPositivePxString(rf.Trleft)); 5157if (Converters.ColorToUse(converterState, cf.CB, cf.CF, cf.Shading, ref cToUse)) 5207if (Converters.ColorToUse(converterState, fsThis.CBPara, fsThis.CFPara, fsThis.ParaShading, ref cToUse)) 5219xamlStringBuilder.Append(Converters.TwipToPositivePxString(NearMargin)); 5221xamlStringBuilder.Append(Converters.TwipToPositivePxString(fsThis.SB)); 5223xamlStringBuilder.Append(Converters.TwipToPositivePxString(FarMargin)); 5225xamlStringBuilder.Append(Converters.TwipToPositivePxString(fsThis.SA)); 5251xamlStringBuilder.Append(Converters.TwipToPxString(fsThis.FI)); 5259xamlStringBuilder.Append(Converters.AlignmentToString(fsThis.HAlign, fsThis.DirPara)); 5286xamlStringBuilder.Append(Converters.TwipToPositivePxString(lMargin)); 5301xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5321xamlStringBuilder.Append(Converters.StringToXMLAttribute(NavigateUri)); 5349xamlStringBuilder.Append(Converters.TwipToPxString(width)); 9676formatState.ImageBaselineOffset = Converters.HalfPointToPositivePx(token.Parameter); 9683formatState.ImageHeight = Converters.TwipToPositivePx(token.Parameter); 9689formatState.ImageWidth = Converters.TwipToPositivePx(token.Parameter);
System\Windows\Documents\XamlToRtfWriter.cs (41)
450dn.ListLabel = Converters.MarkerCountToString(dnList.FormatState.Marker, nCount); 1330_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker)); 2108Converters.PxToHalfPointRounded((imageNaturalSize.Height * scaleFactor.Height) - 2114_rtfBuilder.Append(Converters.PxToTwipRounded(imageNaturalSize.Width * scaleFactor.Width).ToString(CultureInfo.InvariantCulture)); 2118_rtfBuilder.Append(Converters.PxToTwipRounded(imageNaturalSize.Height * scaleFactor.Height).ToString(CultureInfo.InvariantCulture)); 2220Converters.ByteToHex(imageByte, out imageHexBytes[i * 2], out imageHexBytes[i * 2 + 1]); 2739bool ret = Converters.HexStringToInt(name.AsSpan(3, name.Length - 4), ref i); 2753bool ret = Converters.StringToInt(num, ref i); 3018if (Converters.StringToInt(valueString, ref nRowSpan)) 3032if (Converters.StringToInt(valueString, ref nColSpan)) 3046if (Converters.StringToDouble(valueString, ref d)) 3050formatState.RowFormat.Trgaph = Converters.PxToTwipRounded(d); 3071if (Converters.StringToDouble(valueString, ref d)) 3081cf.Width.Value = Converters.PxToTwipRounded(d); 3088Converters.StringToDouble(valueString, ref d); 3097Converters.StringToDouble(valueString, ref d); 3106Converters.StringToDouble(valueString, ref d); 3184formatState.LI = Converters.PxToTwipRounded(thickness.Left); 3185formatState.RI = Converters.PxToTwipRounded(thickness.Right); 3186formatState.SB = Converters.PxToTwipRounded(thickness.Top); 3187formatState.SA = Converters.PxToTwipRounded(thickness.Bottom); 3200formatState.ParaBorder.Spacing = Converters.PxToTwipRounded(t.Left); 3206cf.PaddingLeft = Converters.PxToTwipRounded(t.Left); 3207cf.PaddingRight = Converters.PxToTwipRounded(t.Right); 3208cf.PaddingTop = Converters.PxToTwipRounded(t.Top); 3209cf.PaddingBottom = Converters.PxToTwipRounded(t.Bottom); 3224pf.BorderLeft.Width = Converters.PxToTwipRounded(t.Left); 3226pf.BorderRight.Width = Converters.PxToTwipRounded(t.Right); 3228pf.BorderTop.Width = Converters.PxToTwipRounded(t.Top); 3230pf.BorderBottom.Width = Converters.PxToTwipRounded(t.Bottom); 3237cf.BorderLeft.Width = Converters.PxToTwipRounded(t.Left); 3239cf.BorderRight.Width = Converters.PxToTwipRounded(t.Right); 3241cf.BorderTop.Width = Converters.PxToTwipRounded(t.Top); 3243cf.BorderBottom.Width = Converters.PxToTwipRounded(t.Bottom); 3273formatState.FI = Converters.PxToTwipRounded(ti); 3282formatState.SL = Converters.PxToTwipRounded(sl); 3565bool ret = Converters.StringToDouble(s, ref d); 3572d = Converters.PxToPt(d); 3586return Converters.StringToDouble(s, ref d); 3591return Converters.StringToDouble(s, ref d); 3827if (!Converters.StringToDouble(onenum, ref d))