/// <summary> /// Initializes a new instance of the <see cref="PopupAnnotationWithParent" /> class. /// </summary> /// <param name="Links">Link to the document..</param> /// <param name="Color">Color of the annotation..</param> /// <param name="Contents">Get the annotation content..</param> /// <param name="Modified">The date and time when the annotation was last modified..</param> /// <param name="Id">Gets ID of the annotation..</param> /// <param name="Flags">Gets Flags of the annotation..</param> /// <param name="Name">Gets Name of the annotation..</param> /// <param name="Rect">Gets Rect of the annotation..</param> /// <param name="PageIndex">Gets PageIndex of the annotation..</param> /// <param name="ZIndex">Gets ZIndex of the annotation..</param> /// <param name="HorizontalAlignment">Gets HorizontalAlignment of the annotation..</param> /// <param name="VerticalAlignment">Gets VerticalAlignment of the annotation..</param> /// <param name="Open">Gets or sets a flag specifying whether the pop-up annotation should initially be displayed open..</param> /// <param name="Parent">Parent of annotation..</param> public PopupAnnotationWithParent(List <Link> Links = default(List <Link>), Color Color = default(Color), string Contents = default(string), string Modified = default(string), string Id = default(string), List <AnnotationFlags> Flags = default(List <AnnotationFlags>), string Name = default(string), Rectangle Rect = default(Rectangle), int?PageIndex = default(int?), int?ZIndex = default(int?), HorizontalAlignment HorizontalAlignment = default(HorizontalAlignment), VerticalAlignment VerticalAlignment = default(VerticalAlignment), bool?Open = default(bool?), AnnotationInfo Parent = default(AnnotationInfo)) { this.Links = Links; this.Color = Color; this.Contents = Contents; this.Modified = Modified; this.Id = Id; this.Flags = Flags; this.Name = Name; this.Rect = Rect; this.PageIndex = PageIndex; this.ZIndex = ZIndex; this.HorizontalAlignment = HorizontalAlignment; this.VerticalAlignment = VerticalAlignment; this.Open = Open; this.Parent = Parent; }
/// <summary> /// Initializes a new instance of the <see cref="PopupAnnotationWithParent" /> class. /// </summary> /// <param name="Links">Link to the document.</param> /// <param name="Color">Color of the annotation.</param> /// <param name="Contents">Get the annotation content.</param> /// <param name="Modified">The date and time when the annotation was last modified.</param> /// <param name="Id">Gets ID of the annotation.</param> /// <param name="Flags">Gets Flags of the annotation.</param> /// <param name="Name">Gets Name of the annotation.</param> /// <param name="Rect">Gets Rect of the annotation. (required)</param> /// <param name="PageIndex">Gets PageIndex of the annotation.</param> /// <param name="ZIndex">Gets ZIndex of the annotation.</param> /// <param name="HorizontalAlignment">Gets HorizontalAlignment of the annotation.</param> /// <param name="VerticalAlignment">Gets VerticalAlignment of the annotation.</param> /// <param name="Open">Gets or sets a flag specifying whether the pop-up annotation should initially be displayed open.</param> /// <param name="Parent">Parent of annotation.</param> public PopupAnnotationWithParent(List <Link> Links = default(List <Link>), Color Color = default(Color), string Contents = default(string), string Modified = default(string), string Id = default(string), List <AnnotationFlags> Flags = default(List <AnnotationFlags>), string Name = default(string), Rectangle Rect = default(Rectangle), int?PageIndex = default(int?), int?ZIndex = default(int?), HorizontalAlignment HorizontalAlignment = default(HorizontalAlignment), VerticalAlignment VerticalAlignment = default(VerticalAlignment), bool?Open = default(bool?), AnnotationInfo Parent = default(AnnotationInfo)) { // to ensure "Rect" is required (not null) if (Rect == null) { throw new InvalidDataException("Rect is a required property for PopupAnnotationWithParent and cannot be null"); } else { this.Rect = Rect; } this.Links = Links; this.Color = Color; this.Contents = Contents; this.Modified = Modified; this.Id = Id; this.Flags = Flags; this.Name = Name; this.PageIndex = PageIndex; this.ZIndex = ZIndex; this.HorizontalAlignment = HorizontalAlignment; this.VerticalAlignment = VerticalAlignment; this.Open = Open; this.Parent = Parent; }