示例#1
0
文件: RcSlotTag.cs 项目: phreed/GMac
        /// <summary>
        /// Create and Exact copy of this tag
        /// </summary>
        /// <param name="newMarkers"></param>
        /// <returns></returns>
        internal RcSlotTag CreateCopy(RcTemplateMarkers newMarkers)
        {
            var newTag = new RcSlotTag(newMarkers);

            newTag._tagStringLinesList.AddRange(_tagStringLinesList);
            newTag._generatedLinesList.AddRange(_generatedLinesList);

            return(newTag);
        }
示例#2
0
        /// <summary>
        /// Add a slot tag to this region
        /// </summary>
        /// <param name="tagString"></param>
        /// <param name="linePrefix"></param>
        /// <returns></returns>
        public RcSlotTag AddSlotTag(string tagString, string linePrefix = null)
        {
            var slotTag = new RcSlotTag(_markers)
            {
                TagString  = tagString,
                LinePrefix = linePrefix ?? LinePrefix
            };

            _tagsList.Add(slotTag);



            return(slotTag);
        }