예제 #1
0
        public TableCellNode(TableCellKind kind, int columnSpan, int rowSpan, IInlineNode[] children, SourceRange sourceRange)
        {
            if(null == children) throw Xception.Because.ArgumentNull(() => children);
              if(!(rowSpan > 0)) throw Xception.Because.Argument(() => rowSpan, "must be a positive integer");
              if(!(columnSpan > 0)) throw Xception.Because.Argument(() => columnSpan, "must be a positive integer");

              _kind = kind;
              _rowSpan = rowSpan;
              _columnSpan = columnSpan;
              _children = children;
              _sourceRange = sourceRange;
        }
예제 #2
0
 public void WriteInline([NotNull] IInlineNode inline)
 {
     AddInline(_stack.Peek(), inline);
 }