internal static void AddStyleForPen(DObject dObj, Brush myPen, MsaglStyle style)
        {
            if (style == MsaglStyle.Dashed)
            {
                throw new NotImplementedException();

                /*
                 * myPen.DashStyle = DashStyle.Dash;
                 *
                 * if (dObj.DashPatternArray == null)
                 * {
                 *  float f = dObj.DashSize();
                 *  dObj.DashPatternArray = new[] { f, f };
                 * }
                 * myPen.DashPattern = dObj.DashPatternArray;
                 *
                 * myPen.DashOffset = dObj.DashPatternArray[0];
                 */
            }
            else if (style == MsaglStyle.Dotted)
            {
                throw new NotImplementedException();

                /*
                 * myPen.DashStyle = DashStyle.Dash;
                 * if (dObj.DashPatternArray == null)
                 * {
                 *  float f = dObj.DashSize();
                 *  dObj.DashPatternArray = new[] { 1, f };
                 * }
                 * myPen.DashPattern = dObj.DashPatternArray;
                 */
            }
        }
Example #2
0
        internal static void AddStyleForPen(DObject dObj, Brush myPen, MsaglStyle style)
        {
            if (style == MsaglStyle.Dashed)
            {
                throw new NotImplementedException();
                /*
                myPen.DashStyle = DashStyle.Dash;

                if (dObj.DashPatternArray == null)
                {
                    float f = dObj.DashSize();
                    dObj.DashPatternArray = new[] { f, f };
                }
                myPen.DashPattern = dObj.DashPatternArray;

                myPen.DashOffset = dObj.DashPatternArray[0];
                */
            }
            else if (style == MsaglStyle.Dotted)
            {
                throw new NotImplementedException();
                /*
                myPen.DashStyle = DashStyle.Dash;
                if (dObj.DashPatternArray == null)
                {
                    float f = dObj.DashSize();
                    dObj.DashPatternArray = new[] { 1, f };
                }
                myPen.DashPattern = dObj.DashPatternArray;
                */
            }
        }