Esempio n. 1
0
        /// <summary>
        /// Create an exact copy of this tag
        /// </summary>
        /// <returns></returns>
        internal RcFixedTag CreateCopy(RcTemplateMarkers newMarkers)
        {
            var newTag = new RcFixedTag(newMarkers);

            newTag._fixedLinesList.AddRange(_fixedLinesList);

            return(newTag);
        }
Esempio n. 2
0
        /// <summary>
        /// Add fixed text lines to this region
        /// </summary>
        /// <param name="textLines"></param>
        /// <returns></returns>
        public RcFixedTag AddFixedTextLines(params string[] textLines)
        {
            var fixedTag = LastTag as RcFixedTag;

            if (fixedTag == null)
            {
                fixedTag = new RcFixedTag(_markers);
                _tagsList.Add(fixedTag);
            }

            fixedTag.AddTextLines(textLines);

            return(fixedTag);
        }
Esempio n. 3
0
        /// <summary>
        /// Add fixed text lines to this region
        /// </summary>
        /// <param name="textLines"></param>
        /// <returns></returns>
        public RcFixedTag AddFixedTextLines(IEnumerable <string> textLines)
        {
            var fixedTag = LastTag as RcFixedTag;

            if (fixedTag == null)
            {
                fixedTag = new RcFixedTag(_markers);
                _tagsList.Add(fixedTag);
            }

            fixedTag.AddTextLines(textLines);

            return(fixedTag);
        }
Esempio n. 4
0
        /// <summary>
        /// Add fixed text to this region
        /// </summary>
        /// <param name="text"></param>
        /// <param name="linePrefix"></param>
        /// <returns></returns>
        public RcFixedTag AddFixedText(string text, string linePrefix = null)
        {
            var fixedTag = LastTag as RcFixedTag;

            if (fixedTag == null)
            {
                fixedTag = new RcFixedTag(_markers);
                _tagsList.Add(fixedTag);
            }

            fixedTag.AddText(text, linePrefix);

            return(fixedTag);
        }