예제 #1
0
        FontToTypefaceAndFontSize
        (
            Font oFont,
            out System.Windows.Media.Typeface oTypeface,
            out Double dFontSize
        )
        {
            Debug.Assert(oFont != null);
            AssertValid();

            oTypeface = WpfGraphicsUtil.FontToTypeface(oFont);

            dFontSize = WpfGraphicsUtil.SystemDrawingFontSizeToWpfFontSize(
                oFont.Size);
        }
예제 #2
0
        WorkbookToGraph
        (
            Single valueWorkbook
        )
        {
            AssertValid();

            // Pin the value to the font size limits.

            valueWorkbook = Math.Max(valueWorkbook, MinimumFontSizeWorkbook);
            valueWorkbook = Math.Min(valueWorkbook, MaximumFontSizeWorkbook);

            // Values in the workbook are in the same units as those used by the
            // standard FontDialog.  They need to be converted to WPF units.

            return((Single)WpfGraphicsUtil.SystemDrawingFontSizeToWpfFontSize(
                       valueWorkbook));
        }
예제 #3
0
        TransferToNodeXLWithAxesControl
        (
            NodeXLWithAxesControl nodeXLWithAxesControl
        )
        {
            Debug.Assert(nodeXLWithAxesControl != null);
            AssertValid();

            Font oAxisFont = this.AxisFont;

            nodeXLWithAxesControl.SetFont(
                WpfGraphicsUtil.FontToTypeface(oAxisFont),

                WpfGraphicsUtil.SystemDrawingFontSizeToWpfFontSize(
                    oAxisFont.Size));

            TransferToNodeXLControl(nodeXLWithAxesControl.NodeXLControl);
        }