72 references to Converters
PresentationFramework (72)
System\Windows\Documents\RtfToXamlReader.cs (31)
2141sb.Append(Converters.TwipToPositiveVisiblePxString(BorderAll.EffectiveWidth)); 2145sb.Append(Converters.TwipToPositiveVisiblePxString(BorderLeft.EffectiveWidth)); 2147sb.Append(Converters.TwipToPositiveVisiblePxString(BorderTop.EffectiveWidth)); 2149sb.Append(Converters.TwipToPositiveVisiblePxString(BorderRight.EffectiveWidth)); 2151sb.Append(Converters.TwipToPositiveVisiblePxString(BorderBottom.EffectiveWidth)); 2175sb.Append(Converters.TwipToPositivePxString(Spacing)); 2716sb.Append(Converters.TwipToPositiveVisiblePxString(BorderLeft.EffectiveWidth)); 2718sb.Append(Converters.TwipToPositiveVisiblePxString(BorderTop.EffectiveWidth)); 2720sb.Append(Converters.TwipToPositiveVisiblePxString(BorderRight.EffectiveWidth)); 2722sb.Append(Converters.TwipToPositiveVisiblePxString(BorderBottom.EffectiveWidth)); 2748$" Padding=\"{Converters.TwipToPositivePxString(PaddingLeft)},{Converters.TwipToPositivePxString(PaddingTop)},{Converters.TwipToPositivePxString(PaddingRight)},{Converters.TwipToPositivePxString(PaddingBottom)}\""; 5123xamlStringBuilder.Append(Converters.TwipToPositiveVisiblePxString(cf.SpacingLeft)); 5126xamlStringBuilder.Append(Converters.TwipToPositivePxString(rf.Trleft)); 5149if (Converters.ColorToUse(converterState, cf.CB, cf.CF, cf.Shading, ref cToUse)) 5199if (Converters.ColorToUse(converterState, fsThis.CBPara, fsThis.CFPara, fsThis.ParaShading, ref cToUse)) 5211xamlStringBuilder.Append(Converters.TwipToPositivePxString(NearMargin)); 5213xamlStringBuilder.Append(Converters.TwipToPositivePxString(fsThis.SB)); 5215xamlStringBuilder.Append(Converters.TwipToPositivePxString(FarMargin)); 5217xamlStringBuilder.Append(Converters.TwipToPositivePxString(fsThis.SA)); 5243xamlStringBuilder.Append(Converters.TwipToPxString(fsThis.FI)); 5251xamlStringBuilder.Append(Converters.AlignmentToString(fsThis.HAlign, fsThis.DirPara)); 5278xamlStringBuilder.Append(Converters.TwipToPositivePxString(lMargin)); 5293xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5313xamlStringBuilder.Append(Converters.StringToXMLAttribute(NavigateUri)); 5341xamlStringBuilder.Append(Converters.TwipToPxString(width)); 9650formatState.ImageBaselineOffset = Converters.HalfPointToPositivePx(token.Parameter); 9657formatState.ImageHeight = Converters.TwipToPositivePx(token.Parameter); 9663formatState.ImageWidth = Converters.TwipToPositivePx(token.Parameter);
System\Windows\Documents\XamlToRtfWriter.cs (41)
451dn.ListLabel = Converters.MarkerCountToString(dnList.FormatState.Marker, nCount); 1331_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker)); 2109Converters.PxToHalfPointRounded((imageNaturalSize.Height * scaleFactor.Height) - 2115_rtfBuilder.Append(Converters.PxToTwipRounded(imageNaturalSize.Width * scaleFactor.Width).ToString(CultureInfo.InvariantCulture)); 2119_rtfBuilder.Append(Converters.PxToTwipRounded(imageNaturalSize.Height * scaleFactor.Height).ToString(CultureInfo.InvariantCulture)); 2221Converters.ByteToHex(imageByte, out imageHexBytes[i * 2], out imageHexBytes[i * 2 + 1]); 2740bool ret = Converters.HexStringToInt(name.AsSpan(3, name.Length - 4), ref i); 2754bool ret = Converters.StringToInt(num, ref i); 3019if (Converters.StringToInt(valueString, ref nRowSpan)) 3033if (Converters.StringToInt(valueString, ref nColSpan)) 3047if (Converters.StringToDouble(valueString, ref d)) 3051formatState.RowFormat.Trgaph = Converters.PxToTwipRounded(d); 3072if (Converters.StringToDouble(valueString, ref d)) 3082cf.Width.Value = Converters.PxToTwipRounded(d); 3089Converters.StringToDouble(valueString, ref d); 3098Converters.StringToDouble(valueString, ref d); 3107Converters.StringToDouble(valueString, ref d); 3185formatState.LI = Converters.PxToTwipRounded(thickness.Left); 3186formatState.RI = Converters.PxToTwipRounded(thickness.Right); 3187formatState.SB = Converters.PxToTwipRounded(thickness.Top); 3188formatState.SA = Converters.PxToTwipRounded(thickness.Bottom); 3201formatState.ParaBorder.Spacing = Converters.PxToTwipRounded(t.Left); 3207cf.PaddingLeft = Converters.PxToTwipRounded(t.Left); 3208cf.PaddingRight = Converters.PxToTwipRounded(t.Right); 3209cf.PaddingTop = Converters.PxToTwipRounded(t.Top); 3210cf.PaddingBottom = Converters.PxToTwipRounded(t.Bottom); 3225pf.BorderLeft.Width = Converters.PxToTwipRounded(t.Left); 3227pf.BorderRight.Width = Converters.PxToTwipRounded(t.Right); 3229pf.BorderTop.Width = Converters.PxToTwipRounded(t.Top); 3231pf.BorderBottom.Width = Converters.PxToTwipRounded(t.Bottom); 3238cf.BorderLeft.Width = Converters.PxToTwipRounded(t.Left); 3240cf.BorderRight.Width = Converters.PxToTwipRounded(t.Right); 3242cf.BorderTop.Width = Converters.PxToTwipRounded(t.Top); 3244cf.BorderBottom.Width = Converters.PxToTwipRounded(t.Bottom); 3274formatState.FI = Converters.PxToTwipRounded(ti); 3283formatState.SL = Converters.PxToTwipRounded(sl); 3566bool ret = Converters.StringToDouble(s, ref d); 3573d = Converters.PxToPt(d); 3587return Converters.StringToDouble(s, ref d); 3592return Converters.StringToDouble(s, ref d); 3828if (!Converters.StringToDouble(onenum, ref d))