Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Row" /> class.
 /// </summary>
 /// <param name="BackgroundColor">Gets or sets the background color..</param>
 /// <param name="Border">Gets or sets the border..</param>
 /// <param name="Cells">Sets the cells of the row. (required).</param>
 /// <param name="DefaultCellBorder">Gets default cell border;.</param>
 /// <param name="MinRowHeight">Gets height for row;.</param>
 /// <param name="FixedRowHeight">Gets fixed row height - row may have fixed height;.</param>
 /// <param name="IsInNewPage">Gets fixed row is in new page - page with this property should be printed to next page Default false;.</param>
 /// <param name="IsRowBroken">Gets is row can be broken between two pages.</param>
 /// <param name="DefaultCellTextState">Gets or sets default text state for row cells.</param>
 /// <param name="DefaultCellPadding">Gets or sets default margin for row cells.</param>
 /// <param name="VerticalAlignment">Gets or sets the vertical alignment..</param>
 public Row(Color BackgroundColor = default(Color), BorderInfo Border = default(BorderInfo), List <Cell> Cells = default(List <Cell>), BorderInfo DefaultCellBorder = default(BorderInfo), double?MinRowHeight = default(double?), double?FixedRowHeight = default(double?), bool?IsInNewPage = default(bool?), bool?IsRowBroken = default(bool?), TextState DefaultCellTextState = default(TextState), MarginInfo DefaultCellPadding = default(MarginInfo), VerticalAlignment VerticalAlignment = default(VerticalAlignment))
 {
     // to ensure "Cells" is required (not null)
     if (Cells == null)
     {
         throw new InvalidDataException("Cells is a required property for Row and cannot be null");
     }
     else
     {
         this.Cells = Cells;
     }
     this.BackgroundColor      = BackgroundColor;
     this.Border               = Border;
     this.DefaultCellBorder    = DefaultCellBorder;
     this.MinRowHeight         = MinRowHeight;
     this.FixedRowHeight       = FixedRowHeight;
     this.IsInNewPage          = IsInNewPage;
     this.IsRowBroken          = IsRowBroken;
     this.DefaultCellTextState = DefaultCellTextState;
     this.DefaultCellPadding   = DefaultCellPadding;
     this.VerticalAlignment    = VerticalAlignment;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Cell" /> class.
 /// </summary>
 /// <param name="IsNoBorder">Gets or sets the cell have border..</param>
 /// <param name="Margin">Gets or sets the padding..</param>
 /// <param name="Border">Gets or sets the border..</param>
 /// <param name="BackgroundColor">Gets or sets the background color..</param>
 /// <param name="BackgroundImageFile">Gets or sets the background image file..</param>
 /// <param name="Alignment">Gets or sets the alignment..</param>
 /// <param name="DefaultCellTextState">Gets or sets the default cell text state..</param>
 /// <param name="Paragraphs">Gets or sets the cell&#39;s formatted text..</param>
 /// <param name="IsWordWrapped">Gets or sets the cell&#39;s text word wrapped..</param>
 /// <param name="VerticalAlignment">Gets or sets the vertical alignment..</param>
 /// <param name="ColSpan">Gets or sets the column span..</param>
 /// <param name="RowSpan">Gets or sets the row span..</param>
 /// <param name="Width">Gets or sets the column width..</param>
 public Cell(bool?IsNoBorder = default(bool?), MarginInfo Margin = default(MarginInfo), BorderInfo Border = default(BorderInfo), Color BackgroundColor = default(Color), string BackgroundImageFile = default(string), HorizontalAlignment Alignment = default(HorizontalAlignment), TextState DefaultCellTextState = default(TextState), List <TextRect> Paragraphs = default(List <TextRect>), bool?IsWordWrapped = default(bool?), VerticalAlignment VerticalAlignment = default(VerticalAlignment), int?ColSpan = default(int?), int?RowSpan = default(int?), double?Width = default(double?))
 {
     this.IsNoBorder           = IsNoBorder;
     this.Margin               = Margin;
     this.Border               = Border;
     this.BackgroundColor      = BackgroundColor;
     this.BackgroundImageFile  = BackgroundImageFile;
     this.Alignment            = Alignment;
     this.DefaultCellTextState = DefaultCellTextState;
     this.Paragraphs           = Paragraphs;
     this.IsWordWrapped        = IsWordWrapped;
     this.VerticalAlignment    = VerticalAlignment;
     this.ColSpan              = ColSpan;
     this.RowSpan              = RowSpan;
     this.Width = Width;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Table" /> class.
 /// </summary>
 /// <param name="Links">Link to the document..</param>
 /// <param name="Alignment">Gets HorizontalAlignment of the table alignment..</param>
 /// <param name="HorizontalAlignment">Gets HorizontalAlignment of the table alignment..</param>
 /// <param name="VerticalAlignment">Gets VerticalAlignment of the annotation..</param>
 /// <param name="Top">Gets or sets the table top coordinate..</param>
 /// <param name="Left">Gets or sets the table left coordinate..</param>
 /// <param name="DefaultCellTextState">Gets or sets the default cell text state..</param>
 /// <param name="DefaultCellPadding">Gets or sets the default cell padding..</param>
 /// <param name="Border">Gets or sets the border..</param>
 /// <param name="Rows">Sets the rows of the table. (required).</param>
 /// <param name="DefaultColumnWidth">Gets default cell border;.</param>
 /// <param name="DefaultCellBorder">Gets default cell border;.</param>
 /// <param name="Broken">Gets or sets table vertial broken;.</param>
 /// <param name="ColumnWidths">Gets the column widths of the table..</param>
 /// <param name="RepeatingRowsCount">Gets the first rows count repeated for several pages.</param>
 /// <param name="RepeatingColumnsCount">Gets or sets the maximum columns count for table.</param>
 /// <param name="RepeatingRowsStyle">Gets the style for repeating rows.</param>
 /// <param name="CornerStyle">Gets or sets the styles of the border corners.</param>
 /// <param name="BreakText">Gets or sets break text for table.</param>
 /// <param name="BackgroundColor">Gets or sets table background color.</param>
 /// <param name="IsBordersIncluded">Gets or sets border included in column widhts..</param>
 /// <param name="ColumnAdjustment">Gets or sets the table column adjustment..</param>
 /// <param name="ZIndex">Gets ZIndex of the annotation..</param>
 public Table(List <Link> Links = default(List <Link>), HorizontalAlignment Alignment = default(HorizontalAlignment), HorizontalAlignment HorizontalAlignment = default(HorizontalAlignment), VerticalAlignment VerticalAlignment = default(VerticalAlignment), double?Top = default(double?), double?Left = default(double?), TextState DefaultCellTextState = default(TextState), MarginInfo DefaultCellPadding = default(MarginInfo), BorderInfo Border = default(BorderInfo), List <Row> Rows = default(List <Row>), string DefaultColumnWidth = default(string), BorderInfo DefaultCellBorder = default(BorderInfo), TableBroken Broken = default(TableBroken), string ColumnWidths = default(string), int?RepeatingRowsCount = default(int?), int?RepeatingColumnsCount = default(int?), TextState RepeatingRowsStyle = default(TextState), BorderCornerStyle CornerStyle = default(BorderCornerStyle), TextRect BreakText = default(TextRect), Color BackgroundColor = default(Color), bool?IsBordersIncluded = default(bool?), ColumnAdjustment ColumnAdjustment = default(ColumnAdjustment), int?ZIndex = default(int?))
 {
     // to ensure "Rows" is required (not null)
     if (Rows == null)
     {
         throw new InvalidDataException("Rows is a required property for Table and cannot be null");
     }
     else
     {
         this.Rows = Rows;
     }
     this.Links               = Links;
     this.Alignment           = Alignment;
     this.HorizontalAlignment = HorizontalAlignment;
     this.VerticalAlignment   = VerticalAlignment;
     this.Top  = Top;
     this.Left = Left;
     this.DefaultCellTextState = DefaultCellTextState;
     this.DefaultCellPadding   = DefaultCellPadding;
     this.Border                = Border;
     this.DefaultColumnWidth    = DefaultColumnWidth;
     this.DefaultCellBorder     = DefaultCellBorder;
     this.Broken                = Broken;
     this.ColumnWidths          = ColumnWidths;
     this.RepeatingRowsCount    = RepeatingRowsCount;
     this.RepeatingColumnsCount = RepeatingColumnsCount;
     this.RepeatingRowsStyle    = RepeatingRowsStyle;
     this.CornerStyle           = CornerStyle;
     this.BreakText             = BreakText;
     this.BackgroundColor       = BackgroundColor;
     this.IsBordersIncluded     = IsBordersIncluded;
     this.ColumnAdjustment      = ColumnAdjustment;
     this.ZIndex                = ZIndex;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Table" /> class.
 /// </summary>
 /// <param name="Links">Link to the document..</param>
 /// <param name="Alignment">Gets HorizontalAlignment of the table alignment..</param>
 /// <param name="HorizontalAlignment">Gets HorizontalAlignment of the table alignment..</param>
 /// <param name="VerticalAlignment">Gets VerticalAlignment of the annotation..</param>
 /// <param name="Top">Gets or sets the table top coordinate..</param>
 /// <param name="Left">Gets or sets the table left coordinate..</param>
 /// <param name="DefaultCellTextState">Gets or sets the default cell text state..</param>
 /// <param name="DefaultCellPadding">Gets or sets the default cell padding..</param>
 /// <param name="Border">Gets or sets the border..</param>
 /// <param name="Rows">Sets the rows of the table..</param>
 /// <param name="DefaultColumnWidth">Gets default cell border;.</param>
 /// <param name="DefaultCellBorder">Gets default cell border;.</param>
 /// <param name="Broken">Gets or sets table vertial broken;.</param>
 /// <param name="ColumnWidths">Gets the column widths of the table..</param>
 /// <param name="RepeatingRowsCount">Gets the first rows count repeated for several pages.</param>
 /// <param name="RepeatingColumnsCount">Gets or sets the maximum columns count for table.</param>
 /// <param name="RepeatingRowsStyle">Gets the style for repeating rows.</param>
 /// <param name="CornerStyle">Gets or sets the styles of the border corners.</param>
 /// <param name="BreakText">Gets or sets break text for table.</param>
 /// <param name="BackgroundColor">Gets or sets table background color.</param>
 /// <param name="IsBordersIncluded">Gets or sets border included in column widhts..</param>
 /// <param name="ColumnAdjustment">Gets or sets the table column adjustment..</param>
 /// <param name="ZIndex">Gets ZIndex of the annotation..</param>
 public Table(List <Link> Links = default(List <Link>), HorizontalAlignment Alignment = default(HorizontalAlignment), HorizontalAlignment HorizontalAlignment = default(HorizontalAlignment), VerticalAlignment VerticalAlignment = default(VerticalAlignment), double?Top = default(double?), double?Left = default(double?), TextState DefaultCellTextState = default(TextState), MarginInfo DefaultCellPadding = default(MarginInfo), BorderInfo Border = default(BorderInfo), List <Row> Rows = default(List <Row>), string DefaultColumnWidth = default(string), BorderInfo DefaultCellBorder = default(BorderInfo), TableBroken Broken = default(TableBroken), string ColumnWidths = default(string), int?RepeatingRowsCount = default(int?), int?RepeatingColumnsCount = default(int?), TextState RepeatingRowsStyle = default(TextState), BorderCornerStyle CornerStyle = default(BorderCornerStyle), TextRect BreakText = default(TextRect), Color BackgroundColor = default(Color), bool?IsBordersIncluded = default(bool?), ColumnAdjustment ColumnAdjustment = default(ColumnAdjustment), int?ZIndex = default(int?))
 {
     this.Links               = Links;
     this.Alignment           = Alignment;
     this.HorizontalAlignment = HorizontalAlignment;
     this.VerticalAlignment   = VerticalAlignment;
     this.Top  = Top;
     this.Left = Left;
     this.DefaultCellTextState = DefaultCellTextState;
     this.DefaultCellPadding   = DefaultCellPadding;
     this.Border                = Border;
     this.Rows                  = Rows;
     this.DefaultColumnWidth    = DefaultColumnWidth;
     this.DefaultCellBorder     = DefaultCellBorder;
     this.Broken                = Broken;
     this.ColumnWidths          = ColumnWidths;
     this.RepeatingRowsCount    = RepeatingRowsCount;
     this.RepeatingColumnsCount = RepeatingColumnsCount;
     this.RepeatingRowsStyle    = RepeatingRowsStyle;
     this.CornerStyle           = CornerStyle;
     this.BreakText             = BreakText;
     this.BackgroundColor       = BackgroundColor;
     this.IsBordersIncluded     = IsBordersIncluded;
     this.ColumnAdjustment      = ColumnAdjustment;
     this.ZIndex                = ZIndex;
 }