Esempio n. 1
0
 public MatrixCommandParser(
     string leftDelimiterSymbolName,
     string rightDelimiterSymbolName,
     MatrixCellAlignment cellAlignment)
 {
     _leftDelimiterSymbolName  = leftDelimiterSymbolName;
     _rightDelimiterSymbolName = rightDelimiterSymbolName;
     _cellAlignment            = cellAlignment;
 }
Esempio n. 2
0
 public MatrixAtom(
     SourceSpan source,
     List <List <Atom> > cells,
     MatrixCellAlignment matrixCellAlignment,
     double verticalPadding   = 0.35,
     double horizontalPadding = 0.35) : base(source)
 {
     MatrixCells = new ReadOnlyCollection <ReadOnlyCollection <Atom> >(
         cells.Select(row => new ReadOnlyCollection <Atom>(row)).ToList());
     MatrixCellAlignment = matrixCellAlignment;
     VerticalPadding     = verticalPadding;
     HorizontalPadding   = horizontalPadding;
 }
Esempio n. 3
0
 public MatrixAtom(
     SourceSpan?source,
     IEnumerable <IEnumerable <Atom?> > cells,
     MatrixCellAlignment matrixCellAlignment,
     double verticalPadding   = DefaultPadding,
     double horizontalPadding = DefaultPadding) : base(source)
 {
     MatrixCells = new ReadOnlyCollection <ReadOnlyCollection <Atom?> >(
         cells.Select(row => new ReadOnlyCollection <Atom?>(row.ToList())).ToList());
     MatrixCellAlignment = matrixCellAlignment;
     VerticalPadding     = verticalPadding;
     HorizontalPadding   = horizontalPadding;
 }