/// <summary>
 /// Initializes a new instance of the <see cref="TextReplace" /> class.
 /// </summary>
 /// <param name="OldValue">Original text. (required)</param>
 /// <param name="NewValue">New text. (required)</param>
 /// <param name="Regex">Gets or sets a value indicating whether search text is regular expression. (required)</param>
 /// <param name="TextState">Text properties of a new text.</param>
 /// <param name="Rect">Rectangle area where searched original text.</param>
 public TextReplace(string OldValue = default(string), string NewValue = default(string), bool?Regex = default(bool?), TextState TextState = default(TextState), Rectangle Rect = default(Rectangle))
 {
     // to ensure "OldValue" is required (not null)
     if (OldValue == null)
     {
         throw new InvalidDataException("OldValue is a required property for TextReplace and cannot be null");
     }
     else
     {
         this.OldValue = OldValue;
     }
     // to ensure "NewValue" is required (not null)
     if (NewValue == null)
     {
         throw new InvalidDataException("NewValue is a required property for TextReplace and cannot be null");
     }
     else
     {
         this.NewValue = NewValue;
     }
     // to ensure "Regex" is required (not null)
     if (Regex == null)
     {
         throw new InvalidDataException("Regex is a required property for TextReplace and cannot be null");
     }
     else
     {
         this.Regex = Regex;
     }
     this.TextState = TextState;
     this.Rect      = Rect;
 }
 /// <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="BackgroundImageStorageFile">Gets or sets path of the background image file from storage.</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>
 /// <param name="HtmlFragment">Gets or sets Html fragment.</param>
 /// <param name="Images">Gets or sets ImageFragment list.</param>
 public Cell(bool?IsNoBorder = default(bool?), MarginInfo Margin = default(MarginInfo), BorderInfo Border = default(BorderInfo), Color BackgroundColor = default(Color), string BackgroundImageFile = default(string), string BackgroundImageStorageFile = 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?), string HtmlFragment = default(string), List <ImageFragment> Images = default(List <ImageFragment>))
 {
     this.IsNoBorder                 = IsNoBorder;
     this.Margin                     = Margin;
     this.Border                     = Border;
     this.BackgroundColor            = BackgroundColor;
     this.BackgroundImageFile        = BackgroundImageFile;
     this.BackgroundImageStorageFile = BackgroundImageStorageFile;
     this.Alignment                  = Alignment;
     this.DefaultCellTextState       = DefaultCellTextState;
     this.Paragraphs                 = Paragraphs;
     this.IsWordWrapped              = IsWordWrapped;
     this.VerticalAlignment          = VerticalAlignment;
     this.ColSpan                    = ColSpan;
     this.RowSpan                    = RowSpan;
     this.Width        = Width;
     this.HtmlFragment = HtmlFragment;
     this.Images       = Images;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Stamp" /> class.
 /// </summary>
 /// <param name="Type">Gets the stamp type. (required)</param>
 /// <param name="Background">Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.</param>
 /// <param name="BottomMargin">Gets or sets bottom margin of stamp.</param>
 /// <param name="HorizontalAlignment">Gets or sets Horizontal alignment of stamp on the page. </param>
 /// <param name="LeftMargin">Gets or sets left margin of stamp.</param>
 /// <param name="Opacity">Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.</param>
 /// <param name="RightMargin">Gets or sets right margin of stamp.</param>
 /// <param name="Rotate">Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property.  If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.</param>
 /// <param name="RotateAngle">Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. </param>
 /// <param name="TopMargin">Gets or sets top margin of stamp.</param>
 /// <param name="VerticalAlignment">Gets or sets vertical alignment of stamp on page.</param>
 /// <param name="XIndent">Horizontal stamp coordinate, starting from the left.</param>
 /// <param name="YIndent">Vertical stamp coordinate, starting from the bottom.</param>
 /// <param name="Zoom">Zooming factor of the stamp. Allows to scale stamp.</param>
 /// <param name="TextAlignment">Alignment of the text inside the stamp.</param>
 /// <param name="Value">Gets or sets string value which is used as stamp on the page.</param>
 /// <param name="TextState">Gets text properties of the stamp. See TextState for details.</param>
 /// <param name="FileName">Gets or sets the file name.</param>
 /// <param name="Width">Gets or sets image width. Setting this property allos to scal image horizontally.</param>
 /// <param name="Height">Gets or sets image height. Setting this image allows to scale image vertically.</param>
 /// <param name="PageIndex">Gets or sets the index of the page.</param>
 /// <param name="StartingNumber">Gets or sets value of the number of starting page. Other pages will be numbered starting from this value.</param>
 public Stamp(StampType Type = default(StampType), bool?Background = default(bool?), double?BottomMargin = default(double?), HorizontalAlignment HorizontalAlignment = default(HorizontalAlignment), double?LeftMargin = default(double?), double?Opacity = default(double?), double?RightMargin = default(double?), Rotation Rotate = default(Rotation), double?RotateAngle = default(double?), double?TopMargin = default(double?), VerticalAlignment VerticalAlignment = default(VerticalAlignment), double?XIndent = default(double?), double?YIndent = default(double?), double?Zoom = default(double?), HorizontalAlignment TextAlignment = default(HorizontalAlignment), string Value = default(string), TextState TextState = default(TextState), string FileName = default(string), double?Width = default(double?), double?Height = default(double?), int?PageIndex = default(int?), int?StartingNumber = default(int?))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for Stamp and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.Background          = Background;
     this.BottomMargin        = BottomMargin;
     this.HorizontalAlignment = HorizontalAlignment;
     this.LeftMargin          = LeftMargin;
     this.Opacity             = Opacity;
     this.RightMargin         = RightMargin;
     this.Rotate            = Rotate;
     this.RotateAngle       = RotateAngle;
     this.TopMargin         = TopMargin;
     this.VerticalAlignment = VerticalAlignment;
     this.XIndent           = XIndent;
     this.YIndent           = YIndent;
     this.Zoom           = Zoom;
     this.TextAlignment  = TextAlignment;
     this.Value          = Value;
     this.TextState      = TextState;
     this.FileName       = FileName;
     this.Width          = Width;
     this.Height         = Height;
     this.PageIndex      = PageIndex;
     this.StartingNumber = StartingNumber;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TextFooter" /> class.
 /// </summary>
 /// <param name="Links">Link to the document.</param>
 /// <param name="Background">Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.</param>
 /// <param name="HorizontalAlignment">Gets or sets Horizontal alignment of stamp on the page. </param>
 /// <param name="Opacity">Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.</param>
 /// <param name="Rotate">Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property.  If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.</param>
 /// <param name="RotateAngle">Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. </param>
 /// <param name="XIndent">Horizontal stamp coordinate, starting from the left.</param>
 /// <param name="YIndent">Vertical stamp coordinate, starting from the bottom.</param>
 /// <param name="Zoom">Zooming factor of the stamp. Allows to scale stamp.</param>
 /// <param name="TextAlignment">Alignment of the text inside the stamp.</param>
 /// <param name="Value">Gets or sets string value which is used as stamp on the page.</param>
 /// <param name="TextState">Gets text properties of the stamp. See TextState for details.</param>
 /// <param name="BottomMargin">Gets or sets bottom margin of stamp.</param>
 /// <param name="LeftMargin">Gets or sets left margin of stamp.</param>
 /// <param name="RightMargin">Gets or sets right margin of stamp.</param>
 public TextFooter(List <Link> Links = default(List <Link>), bool?Background = default(bool?), HorizontalAlignment HorizontalAlignment = default(HorizontalAlignment), double?Opacity = default(double?), Rotation Rotate = default(Rotation), double?RotateAngle = default(double?), double?XIndent = default(double?), double?YIndent = default(double?), double?Zoom = default(double?), HorizontalAlignment TextAlignment = default(HorizontalAlignment), string Value = default(string), TextState TextState = default(TextState), double?BottomMargin = default(double?), double?LeftMargin = default(double?), double?RightMargin = default(double?))
 {
     this.Links               = Links;
     this.Background          = Background;
     this.HorizontalAlignment = HorizontalAlignment;
     this.Opacity             = Opacity;
     this.Rotate              = Rotate;
     this.RotateAngle         = RotateAngle;
     this.XIndent             = XIndent;
     this.YIndent             = YIndent;
     this.Zoom          = Zoom;
     this.TextAlignment = TextAlignment;
     this.Value         = Value;
     this.TextState     = TextState;
     this.BottomMargin  = BottomMargin;
     this.LeftMargin    = LeftMargin;
     this.RightMargin   = RightMargin;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TextRect" /> class.
 /// </summary>
 /// <param name="Text">Text of the occurrence.</param>
 /// <param name="Page">Page on which the occurrence is found.</param>
 /// <param name="Rect">Rectangle of the occurrence.</param>
 /// <param name="HorizontalAlignment">Gets or sets a horizontal alignment of text fragment. </param>
 /// <param name="VerticalAlignment">Gets or sets a vertical alignment of text fragment. </param>
 /// <param name="Position">Gets or sets text position for text, represented with TextRect object.</param>
 /// <param name="BaselinePosition">Gets text position for text, represented with TextRect object. The YIndent of the Position structure represents baseline coordinate of the text fragment.</param>
 /// <param name="TextState">Gets or sets text state for the text that TextRect object represents.</param>
 public TextRect(string Text = default(string), int?Page = default(int?), Rectangle Rect = default(Rectangle), HorizontalAlignment HorizontalAlignment = default(HorizontalAlignment), VerticalAlignment VerticalAlignment = default(VerticalAlignment), Position Position = default(Position), Position BaselinePosition = default(Position), TextState TextState = default(TextState))
 {
     this.Text = Text;
     this.Page = Page;
     this.Rect = Rect;
     this.HorizontalAlignment = HorizontalAlignment;
     this.VerticalAlignment   = VerticalAlignment;
     this.Position            = Position;
     this.BaselinePosition    = BaselinePosition;
     this.TextState           = TextState;
 }
Пример #6
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;
 }
Пример #7
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="Margin">Gets or sets a outer margin for paragraph (for pdf generation)</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), MarginInfo Margin = default(MarginInfo), 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.Margin                = Margin;
     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;
 }
Пример #8
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;
 }