public override ITextStrategy Clone()
        {
            TextNoOutlineStrategy p = new TextNoOutlineStrategy();
            if (m_bClrText)
                p.Init(m_clrText);
            else
                p.Init(m_brushText);

            return (ITextStrategy)(p);
        }
        public override ITextStrategy Clone()
        {
            TextNoOutlineStrategy p = new TextNoOutlineStrategy();

            if (m_bClrText)
            {
                p.Init(m_clrText);
            }
            else
            {
                p.Init(m_brushText);
            }

            return((ITextStrategy)(p));
        }
Exemple #3
0
        /// <summary>
        /// Setting just Text effect with no outline
        /// </summary>
        /// <param name="brushText">is the text brush</param>
        /// <returns>valid ITextStrategy pointer if successful</returns>
        public static ITextStrategy TextNoOutline(
            System.Drawing.Brush brushText)
        {
            TextNoOutlineStrategy strat = new TextNoOutlineStrategy();

            strat.Init(brushText);

            return(strat);
        }
Exemple #4
0
        /// <summary>
        /// Setting just Text effect with no outline
        /// </summary>
        /// <param name="clrText">is the text color</param>
        /// <returns>valid ITextStrategy pointer if successful</returns>
        public static ITextStrategy TextNoOutline(
            System.Drawing.Color clrText)
        {
            TextNoOutlineStrategy strat = new TextNoOutlineStrategy();

            strat.Init(clrText);

            return(strat);
        }
Exemple #5
0
        /// <summary>
        /// Setting just Text effect with no outline
        /// </summary>
        /// <param name="brushText">is the text brush</param>
        /// <returns>valid ITextStrategy pointer if successful</returns>
        public static ITextStrategy TextNoOutline(
            System.Drawing.Brush brushText)
        {
            TextNoOutlineStrategy strat = new TextNoOutlineStrategy();
            strat.Init(brushText);

            return strat;
        }
Exemple #6
0
        /// <summary>
        /// Setting just Text effect with no outline
        /// </summary>
        /// <param name="clrText">is the text color</param>
        /// <returns>valid ITextStrategy pointer if successful</returns>
        public static ITextStrategy TextNoOutline(
            System.Drawing.Color clrText)
        {
            TextNoOutlineStrategy strat = new TextNoOutlineStrategy();
            strat.Init(clrText);

            return strat;
        }
Exemple #7
0
        public void TextNoOutline(System.Drawing.Brush brushText)
        {
            TextNoOutlineStrategy pStrat = new TextNoOutlineStrategy();
            pStrat.Init(brushText);

            m_pTextStrategy = pStrat;
        }
Exemple #8
0
        public void TextNoOutline(System.Drawing.Color clrText)
        {
            TextNoOutlineStrategy pStrat = new TextNoOutlineStrategy();
            pStrat.Init(clrText);

            m_pTextStrategy = pStrat;
        }