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)}\""; 5124xamlStringBuilder.Append(Converters.TwipToPositiveVisiblePxString(cf.SpacingLeft)); 5127xamlStringBuilder.Append(Converters.TwipToPositivePxString(rf.Trleft)); 5150if (Converters.ColorToUse(converterState, cf.CB, cf.CF, cf.Shading, ref cToUse)) 5200if (Converters.ColorToUse(converterState, fsThis.CBPara, fsThis.CFPara, fsThis.ParaShading, ref cToUse)) 5212xamlStringBuilder.Append(Converters.TwipToPositivePxString(NearMargin)); 5214xamlStringBuilder.Append(Converters.TwipToPositivePxString(fsThis.SB)); 5216xamlStringBuilder.Append(Converters.TwipToPositivePxString(FarMargin)); 5218xamlStringBuilder.Append(Converters.TwipToPositivePxString(fsThis.SA)); 5244xamlStringBuilder.Append(Converters.TwipToPxString(fsThis.FI)); 5252xamlStringBuilder.Append(Converters.AlignmentToString(fsThis.HAlign, fsThis.DirPara)); 5279xamlStringBuilder.Append(Converters.TwipToPositivePxString(lMargin)); 5294xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5314xamlStringBuilder.Append(Converters.StringToXMLAttribute(NavigateUri)); 5342xamlStringBuilder.Append(Converters.TwipToPxString(width)); 9651formatState.ImageBaselineOffset = Converters.HalfPointToPositivePx(token.Parameter); 9658formatState.ImageHeight = Converters.TwipToPositivePx(token.Parameter); 9664formatState.ImageWidth = Converters.TwipToPositivePx(token.Parameter);
System\Windows\Documents\XamlToRtfWriter.cs (41)
452dn.ListLabel = Converters.MarkerCountToString(dnList.FormatState.Marker, nCount); 1332_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker)); 2110Converters.PxToHalfPointRounded((imageNaturalSize.Height * scaleFactor.Height) - 2116_rtfBuilder.Append(Converters.PxToTwipRounded(imageNaturalSize.Width * scaleFactor.Width).ToString(CultureInfo.InvariantCulture)); 2120_rtfBuilder.Append(Converters.PxToTwipRounded(imageNaturalSize.Height * scaleFactor.Height).ToString(CultureInfo.InvariantCulture)); 2222Converters.ByteToHex(imageByte, out imageHexBytes[i * 2], out imageHexBytes[i * 2 + 1]); 2741bool ret = Converters.HexStringToInt(name.AsSpan(3, name.Length - 4), ref i); 2755bool ret = Converters.StringToInt(num, ref i); 3020if (Converters.StringToInt(valueString, ref nRowSpan)) 3034if (Converters.StringToInt(valueString, ref nColSpan)) 3048if (Converters.StringToDouble(valueString, ref d)) 3052formatState.RowFormat.Trgaph = Converters.PxToTwipRounded(d); 3073if (Converters.StringToDouble(valueString, ref d)) 3083cf.Width.Value = Converters.PxToTwipRounded(d); 3090Converters.StringToDouble(valueString, ref d); 3099Converters.StringToDouble(valueString, ref d); 3108Converters.StringToDouble(valueString, ref d); 3186formatState.LI = Converters.PxToTwipRounded(thickness.Left); 3187formatState.RI = Converters.PxToTwipRounded(thickness.Right); 3188formatState.SB = Converters.PxToTwipRounded(thickness.Top); 3189formatState.SA = Converters.PxToTwipRounded(thickness.Bottom); 3202formatState.ParaBorder.Spacing = Converters.PxToTwipRounded(t.Left); 3208cf.PaddingLeft = Converters.PxToTwipRounded(t.Left); 3209cf.PaddingRight = Converters.PxToTwipRounded(t.Right); 3210cf.PaddingTop = Converters.PxToTwipRounded(t.Top); 3211cf.PaddingBottom = Converters.PxToTwipRounded(t.Bottom); 3226pf.BorderLeft.Width = Converters.PxToTwipRounded(t.Left); 3228pf.BorderRight.Width = Converters.PxToTwipRounded(t.Right); 3230pf.BorderTop.Width = Converters.PxToTwipRounded(t.Top); 3232pf.BorderBottom.Width = Converters.PxToTwipRounded(t.Bottom); 3239cf.BorderLeft.Width = Converters.PxToTwipRounded(t.Left); 3241cf.BorderRight.Width = Converters.PxToTwipRounded(t.Right); 3243cf.BorderTop.Width = Converters.PxToTwipRounded(t.Top); 3245cf.BorderBottom.Width = Converters.PxToTwipRounded(t.Bottom); 3275formatState.FI = Converters.PxToTwipRounded(ti); 3284formatState.SL = Converters.PxToTwipRounded(sl); 3567bool ret = Converters.StringToDouble(s, ref d); 3574d = Converters.PxToPt(d); 3588return Converters.StringToDouble(s, ref d); 3593return Converters.StringToDouble(s, ref d); 3829if (!Converters.StringToDouble(onenum, ref d))