72 references to Converters
PresentationFramework (72)
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (31)
2184sb.Append(Converters.TwipToPositiveVisiblePxString(BorderAll.EffectiveWidth)); 2188sb.Append(Converters.TwipToPositiveVisiblePxString(BorderLeft.EffectiveWidth)); 2190sb.Append(Converters.TwipToPositiveVisiblePxString(BorderTop.EffectiveWidth)); 2192sb.Append(Converters.TwipToPositiveVisiblePxString(BorderRight.EffectiveWidth)); 2194sb.Append(Converters.TwipToPositiveVisiblePxString(BorderBottom.EffectiveWidth)); 2218sb.Append(Converters.TwipToPositivePxString(Spacing)); 2761sb.Append(Converters.TwipToPositiveVisiblePxString(BorderLeft.EffectiveWidth)); 2763sb.Append(Converters.TwipToPositiveVisiblePxString(BorderTop.EffectiveWidth)); 2765sb.Append(Converters.TwipToPositiveVisiblePxString(BorderRight.EffectiveWidth)); 2767sb.Append(Converters.TwipToPositiveVisiblePxString(BorderBottom.EffectiveWidth)); 2798sb.Append(Converters.TwipToPositivePxString(PaddingLeft)); 2800sb.Append(Converters.TwipToPositivePxString(PaddingTop)); 2802sb.Append(Converters.TwipToPositivePxString(PaddingRight)); 2804sb.Append(Converters.TwipToPositivePxString(PaddingBottom)); 5186xamlStringBuilder.Append(Converters.TwipToPositiveVisiblePxString(cf.SpacingLeft)); 5189xamlStringBuilder.Append(Converters.TwipToPositivePxString(rf.Trleft)); 5212if (Converters.ColorToUse(converterState, cf.CB, cf.CF, cf.Shading, ref cToUse)) 5262if (Converters.ColorToUse(converterState, fsThis.CBPara, fsThis.CFPara, fsThis.ParaShading, ref cToUse)) 5274xamlStringBuilder.Append(Converters.TwipToPositivePxString(NearMargin)); 5276xamlStringBuilder.Append(Converters.TwipToPositivePxString(fsThis.SB)); 5278xamlStringBuilder.Append(Converters.TwipToPositivePxString(FarMargin)); 5280xamlStringBuilder.Append(Converters.TwipToPositivePxString(fsThis.SA)); 5306xamlStringBuilder.Append(Converters.TwipToPxString(fsThis.FI)); 5314xamlStringBuilder.Append(Converters.AlignmentToString(fsThis.HAlign, fsThis.DirPara)); 5341xamlStringBuilder.Append(Converters.TwipToPositivePxString(lMargin)); 5356xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5376xamlStringBuilder.Append(Converters.StringToXMLAttribute(NavigateUri)); 5404xamlStringBuilder.Append(Converters.TwipToPxString(width)); 9743formatState.ImageBaselineOffset = Converters.HalfPointToPositivePx(token.Parameter); 9750formatState.ImageHeight = Converters.TwipToPositivePx(token.Parameter); 9756formatState.ImageWidth = Converters.TwipToPositivePx(token.Parameter);
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (41)
453dn.ListLabel = Converters.MarkerCountToString(dnList.FormatState.Marker, nCount); 1334_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker)); 2111Converters.PxToHalfPointRounded((imageNaturalSize.Height * scaleFactor.Height) - 2117_rtfBuilder.Append(Converters.PxToTwipRounded(imageNaturalSize.Width * scaleFactor.Width).ToString(CultureInfo.InvariantCulture)); 2121_rtfBuilder.Append(Converters.PxToTwipRounded(imageNaturalSize.Height * scaleFactor.Height).ToString(CultureInfo.InvariantCulture)); 2223Converters.ByteToHex(imageByte, out imageHexBytes[i * 2], out imageHexBytes[i * 2 + 1]); 2743bool ret = Converters.HexStringToInt(num, ref i); 2759bool ret = Converters.StringToInt(num, ref i); 3026if (Converters.StringToInt(valueString, ref nRowSpan)) 3040if (Converters.StringToInt(valueString, ref nColSpan)) 3054if (Converters.StringToDouble(valueString, ref d)) 3058formatState.RowFormat.Trgaph = Converters.PxToTwipRounded(d); 3079if (Converters.StringToDouble(valueString, ref d)) 3089cf.Width.Value = Converters.PxToTwipRounded(d); 3096Converters.StringToDouble(valueString, ref d); 3105Converters.StringToDouble(valueString, ref d); 3114Converters.StringToDouble(valueString, ref d); 3192formatState.LI = Converters.PxToTwipRounded(thickness.Left); 3193formatState.RI = Converters.PxToTwipRounded(thickness.Right); 3194formatState.SB = Converters.PxToTwipRounded(thickness.Top); 3195formatState.SA = Converters.PxToTwipRounded(thickness.Bottom); 3208formatState.ParaBorder.Spacing = Converters.PxToTwipRounded(t.Left); 3214cf.PaddingLeft = Converters.PxToTwipRounded(t.Left); 3215cf.PaddingRight = Converters.PxToTwipRounded(t.Right); 3216cf.PaddingTop = Converters.PxToTwipRounded(t.Top); 3217cf.PaddingBottom = Converters.PxToTwipRounded(t.Bottom); 3232pf.BorderLeft.Width = Converters.PxToTwipRounded(t.Left); 3234pf.BorderRight.Width = Converters.PxToTwipRounded(t.Right); 3236pf.BorderTop.Width = Converters.PxToTwipRounded(t.Top); 3238pf.BorderBottom.Width = Converters.PxToTwipRounded(t.Bottom); 3245cf.BorderLeft.Width = Converters.PxToTwipRounded(t.Left); 3247cf.BorderRight.Width = Converters.PxToTwipRounded(t.Right); 3249cf.BorderTop.Width = Converters.PxToTwipRounded(t.Top); 3251cf.BorderBottom.Width = Converters.PxToTwipRounded(t.Bottom); 3281formatState.FI = Converters.PxToTwipRounded(ti); 3290formatState.SL = Converters.PxToTwipRounded(sl); 3573bool ret = Converters.StringToDouble(s, ref d); 3580d = Converters.PxToPt(d); 3594return Converters.StringToDouble(s, ref d); 3599return Converters.StringToDouble(s, ref d); 3836if (!Converters.StringToDouble(onenum, ref d))