Ejemplo n.º 1
0
        protected virtual textContentLines writeClear(textContentLines __content)
        {
            if (__content == null)
            {
                __content = new textContentLines(this);
            }
            textContentLines output = __content;

            output.Clear();
            String marginLine = marginDecoration.Repeat(width);

            for (Int32 a = 0; a < height; a++)
            {
                output.Add(marginLine);
            }
            return(output);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Renderuje pozadinu
        /// </summary>
        /// <param name="__content"></param>
        /// <param name="marginDeco"></param>
        /// <param name="backgroundDeco"></param>
        /// <returns></returns>
        protected virtual textContentLines writeBackground(textContentLines __content, Boolean saveToSelf)
        {
            if (__content == null)
            {
                __content = new textContentLines(this);
            }
            textContentLines output = __content;

            output = writeClear(output);

            /// renderovanje pozadine
            for (Int32 a = innerBoxedTopPosition; a < innerBoxedBottomPosition; a++)
            {
                output[a] = writeInlineBackground(output[a], marginDecoration, backgroundDecoration);
            }

            if (saveToSelf)
            {
                contentLines = output;
            }
            return(output);
        }