public SSAPlaceInsertLine(ISSALine line) : base() { if (line == null) { throw new ArgumentNullException(nameof(line)); } this.name = "PlaceInsert"; this.innerLine = line; }
protected virtual ISSALine CreateFormatableLine(string text, bool formatable) { ISSALine line = base.CreateLine(text); if (!formatable) { return(line); } else if (line is SSAPredefineLineFormatLine predefineLineFormatLine && FormatStringRegex.Match(predefineLineFormatLine.Text) is Match match && match.Success ) { this.predefineLineFormat = match.Groups["Format"].Value; this.formatSwitch = true; return(null); }
public void Add(ISSALine line) => this.lines.Add(line ?? throw new ArgumentNullException(nameof(line)));