internal RcSlotRegion(RcTemplateMarkers markers) { LinePrefix = string.Empty; TagString = string.Empty; _tagsList = new List <IRcTag>(); _markers = markers; }
/// <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); }
/// <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); }
/// <summary> /// Create an exact copy of this region /// </summary> /// <param name="newMarkers"></param> /// <returns></returns> internal RcSlotRegion CreateCopy(RcTemplateMarkers newMarkers) { var newRegion = new RcSlotRegion(newMarkers); foreach (var tag in _tagsList) { if (tag.IsFixed) { newRegion._tagsList.Add(((RcFixedTag)tag).CreateCopy(newMarkers)); } else { newRegion._tagsList.Add(((RcSlotTag)tag).CreateCopy(newMarkers)); } } return(newRegion); }
public RcTemplate() { _markers = new RcTemplateMarkers(); }
internal RcSlotTag(RcTemplateMarkers markers) { _tagStringLinesList = new List <string>(); _generatedLinesList = new List <string>(); _markers = markers; }
internal RcFixedTag(RcTemplateMarkers markers) { _fixedLinesList = new List <string>(); _markers = markers; }