/// <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's formatted text..</param> /// <param name="IsWordWrapped">Gets or sets the cell'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; }
/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="FormField" /> class. /// </summary> /// <param name="Links">Link to the document.</param> /// <param name="PartialName">Field name.</param> /// <param name="FullName">Full Field name.</param> /// <param name="Rect">Field rectangle.</param> /// <param name="Value">Field value.</param> /// <param name="PageIndex">Page index. (required)</param> /// <param name="Height">Gets or sets height of the field.</param> /// <param name="Width">Gets or sets width of the field.</param> /// <param name="ZIndex">Z index.</param> /// <param name="IsGroup">Is group.</param> /// <param name="Parent">Gets field parent.</param> /// <param name="IsSharedField">Property for Generator support. Used when field is added to header or footer. If true, this field will created once and it's appearance will be visible on all pages of the document. If false, separated field will be created for every document page.</param> /// <param name="Flags">Gets Flags of the field.</param> /// <param name="Color">Color of the annotation.</param> /// <param name="Contents">Get the field content.</param> /// <param name="Margin">Gets or sets a outer margin for paragraph (for pdf generation)</param> /// <param name="Highlighting">Field highlighting mode.</param> /// <param name="HorizontalAlignment">Gets HorizontalAlignment of the field.</param> /// <param name="VerticalAlignment">Gets VerticalAlignment of the field.</param> /// <param name="Border">Gets or sets annotation border characteristics.</param> public FormField(List <Link> Links = default(List <Link>), string PartialName = default(string), string FullName = default(string), Rectangle Rect = default(Rectangle), string Value = default(string), int?PageIndex = default(int?), double?Height = default(double?), double?Width = default(double?), int?ZIndex = default(int?), bool?IsGroup = default(bool?), FormField Parent = default(FormField), bool?IsSharedField = default(bool?), List <AnnotationFlags> Flags = default(List <AnnotationFlags>), Color Color = default(Color), string Contents = default(string), MarginInfo Margin = default(MarginInfo), LinkHighlightingMode Highlighting = default(LinkHighlightingMode), HorizontalAlignment HorizontalAlignment = default(HorizontalAlignment), VerticalAlignment VerticalAlignment = default(VerticalAlignment), Border Border = default(Border)) { // to ensure "PageIndex" is required (not null) if (PageIndex == null) { throw new InvalidDataException("PageIndex is a required property for FormField and cannot be null"); } else { this.PageIndex = PageIndex; } this.Links = Links; this.PartialName = PartialName; this.FullName = FullName; this.Rect = Rect; this.Value = Value; this.Height = Height; this.Width = Width; this.ZIndex = ZIndex; this.IsGroup = IsGroup; this.Parent = Parent; this.IsSharedField = IsSharedField; this.Flags = Flags; this.Color = Color; this.Contents = Contents; this.Margin = Margin; this.Highlighting = Highlighting; this.HorizontalAlignment = HorizontalAlignment; this.VerticalAlignment = VerticalAlignment; this.Border = Border; }
/// <summary> /// Initializes a new instance of the <see cref="ImageTemplate" /> class. /// </summary> /// <param name="ImagePath">A path for image. (required)</param> /// <param name="ImageSrcType">Image type. (required)</param> /// <param name="LeftMargin">LeftMargin</param> /// <param name="RightMargin">RightMargin</param> /// <param name="TopMargin">TopMargin</param> /// <param name="BottomMargin">BottomMargin</param> /// <param name="PageWidth">PageWidth</param> /// <param name="PageHeight">PageHeight</param> /// <param name="MarginInfo">MarginInfo</param> public ImageTemplate(string ImagePath = default(string), ImageSrcType ImageSrcType = default(ImageSrcType), double?LeftMargin = default(double?), double?RightMargin = default(double?), double?TopMargin = default(double?), double?BottomMargin = default(double?), double?PageWidth = default(double?), double?PageHeight = default(double?), MarginInfo MarginInfo = default(MarginInfo)) { // to ensure "ImagePath" is required (not null) if (ImagePath == null) { throw new InvalidDataException("ImagePath is a required property for ImageTemplate and cannot be null"); } else { this.ImagePath = ImagePath; } // to ensure "ImageSrcType" is required (not null) if (ImageSrcType == null) { throw new InvalidDataException("ImageSrcType is a required property for ImageTemplate and cannot be null"); } else { this.ImageSrcType = ImageSrcType; } this.LeftMargin = LeftMargin; this.RightMargin = RightMargin; this.TopMargin = TopMargin; this.BottomMargin = BottomMargin; this.PageWidth = PageWidth; this.PageHeight = PageHeight; this.MarginInfo = MarginInfo; }
/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="ImageFragment" /> class. /// </summary> /// <param name="ImageFile">Gets or sets full storage path of image. (required)</param> /// <param name="FixWidth">Gets or sets fix width of the image.</param> /// <param name="FixHeight">Gets or sets fix height of the image.</param> /// <param name="HorizontalAlignment">Gets or sets horizontal alignment of the image.</param> /// <param name="VerticalAlignment">Gets or sets vertical alignment of the image.</param> /// <param name="ImageScale">Gets or sets ImageScale of the image.</param> /// <param name="Margin">Gets or sets Margin of the image.</param> public ImageFragment(string ImageFile = default(string), double?FixWidth = default(double?), double?FixHeight = default(double?), HorizontalAlignment HorizontalAlignment = default(HorizontalAlignment), VerticalAlignment VerticalAlignment = default(VerticalAlignment), double?ImageScale = default(double?), MarginInfo Margin = default(MarginInfo)) { // to ensure "ImageFile" is required (not null) if (ImageFile == null) { throw new InvalidDataException("ImageFile is a required property for ImageFragment and cannot be null"); } else { this.ImageFile = ImageFile; } this.FixWidth = FixWidth; this.FixHeight = FixHeight; this.HorizontalAlignment = HorizontalAlignment; this.VerticalAlignment = VerticalAlignment; this.ImageScale = ImageScale; this.Margin = Margin; }
/// <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; }