/// <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="LinkAnnotation" /> class. /// </summary> /// <param name="Links">Link to the document.</param> /// <param name="ActionType">ActionType (required)</param> /// <param name="Action">Action (required)</param> /// <param name="Highlighting">Highlighting (required)</param> /// <param name="Color">Color</param> /// <param name="Rect">Rect (required)</param> /// <param name="Id">Id</param> public LinkAnnotation(List <Link> Links = default(List <Link>), LinkActionType ActionType = default(LinkActionType), string Action = default(string), LinkHighlightingMode Highlighting = default(LinkHighlightingMode), Color Color = default(Color), Rectangle Rect = default(Rectangle), string Id = default(string)) { // to ensure "ActionType" is required (not null) if (ActionType == null) { throw new InvalidDataException("ActionType is a required property for LinkAnnotation and cannot be null"); } else { this.ActionType = ActionType; } // to ensure "Action" is required (not null) if (Action == null) { throw new InvalidDataException("Action is a required property for LinkAnnotation and cannot be null"); } else { this.Action = Action; } // to ensure "Highlighting" is required (not null) if (Highlighting == null) { throw new InvalidDataException("Highlighting is a required property for LinkAnnotation and cannot be null"); } else { this.Highlighting = Highlighting; } // to ensure "Rect" is required (not null) if (Rect == null) { throw new InvalidDataException("Rect is a required property for LinkAnnotation and cannot be null"); } else { this.Rect = Rect; } this.Links = Links; this.Color = Color; this.Id = Id; }
/// <summary> /// Initializes a new instance of the <see cref="LinkAnnotation" /> class. /// </summary> /// <param name="Links">Link to the document..</param> /// <param name="ActionType">ActionType.</param> /// <param name="Action">Action.</param> /// <param name="Highlighting">Highlighting.</param> /// <param name="Color">Color.</param> /// <param name="Rect">Rect.</param> /// <param name="Id">Id.</param> public LinkAnnotation(List <Link> Links = default(List <Link>), LinkActionType ActionType = default(LinkActionType), string Action = default(string), LinkHighlightingMode Highlighting = default(LinkHighlightingMode), Color Color = default(Color), Rectangle Rect = default(Rectangle), string Id = default(string)) { this.Links = Links; this.ActionType = ActionType; this.Action = Action; this.Highlighting = Highlighting; this.Color = Color; this.Rect = Rect; this.Id = Id; }