/// <summary> /// Initializes a new instance of the <see cref="TextBoxField" /> 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> /// <param name="Multiline">Gets or sets multiline flag of the field. If Multiline is true field can contain multiple lines of text.</param> /// <param name="SpellCheck">Gets or sets spellcheck flag for field. If true field shall be spell checked.</param> /// <param name="Scrollable">Gets or sets scrollable flag of field. If true field can be scrolled.</param> /// <param name="ForceCombs">Gets or sets flag which indicates is field divided into spaced positions.</param> /// <param name="MaxLen">Gets or sets maximum length of text in the field.</param> /// <param name="Barcode">Adds barcode 128 into the field. Field value will be changed onto the code and field become read only.</param> public TextBoxField(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), bool?Multiline = default(bool?), bool?SpellCheck = default(bool?), bool?Scrollable = default(bool?), bool?ForceCombs = default(bool?), int?MaxLen = default(int?), string Barcode = default(string)) { // to ensure "PageIndex" is required (not null) if (PageIndex == null) { throw new InvalidDataException("PageIndex is a required property for TextBoxField 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; this.Multiline = Multiline; this.SpellCheck = SpellCheck; this.Scrollable = Scrollable; this.ForceCombs = ForceCombs; this.MaxLen = MaxLen; this.Barcode = Barcode; }
/// <summary> /// Initializes a new instance of the <see cref="RadioButtonField" /> 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> /// <param name="MultiSelect">Gets or sets multiselection flag.</param> /// <param name="Selected">Gets or sets index of selected item. Numbering of items is started from 1.</param> /// <param name="Options">Gets collection of options of the radio button.</param> /// <param name="RadioButtonOptionsField">Gets collection of radio button options field.</param> /// <param name="Style">Style of field box.</param> public RadioButtonField(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), bool?MultiSelect = default(bool?), int?Selected = default(int?), List <Option> Options = default(List <Option>), List <RadioButtonOptionField> RadioButtonOptionsField = default(List <RadioButtonOptionField>), BoxStyle Style = default(BoxStyle)) { // to ensure "PageIndex" is required (not null) if (PageIndex == null) { throw new InvalidDataException("PageIndex is a required property for RadioButtonField 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; this.MultiSelect = MultiSelect; this.Selected = Selected; this.Options = Options; this.RadioButtonOptionsField = RadioButtonOptionsField; this.Style = Style; }
/// <summary> /// Initializes a new instance of the <see cref="CheckBoxField" /> 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> /// <param name="AllowedStates">Returns list of allowed states.</param> /// <param name="Style">Gets or sets style of check box.</param> /// <param name="ActiveState">Gets or sets current annotation appearance state.</param> /// <param name="_Checked">Gets or sets state of check box. (required)</param> /// <param name="ExportValue">Gets or sets export value of CheckBox field.</param> public CheckBoxField(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), List <string> AllowedStates = default(List <string>), BoxStyle Style = default(BoxStyle), string ActiveState = default(string), bool?_Checked = default(bool?), string ExportValue = default(string)) { // to ensure "PageIndex" is required (not null) if (PageIndex == null) { throw new InvalidDataException("PageIndex is a required property for CheckBoxField and cannot be null"); } else { this.PageIndex = PageIndex; } // to ensure "_Checked" is required (not null) if (_Checked == null) { throw new InvalidDataException("_Checked is a required property for CheckBoxField and cannot be null"); } else { this._Checked = _Checked; } 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; this.AllowedStates = AllowedStates; this.Style = Style; this.ActiveState = ActiveState; this.ExportValue = ExportValue; }