Ejemplo n.º 1
0
        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);
            }
Ejemplo n.º 3
0
 public void Add(ISSALine line) => this.lines.Add(line ?? throw new ArgumentNullException(nameof(line)));