Beispiel #1
0
        /// <summary>
        /// Returns true if PdfInsertTextParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of PdfInsertTextParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PdfInsertTextParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     PageRange == input.PageRange ||
                     (PageRange != null &&
                      PageRange.Equals(input.PageRange))
                 ) &&
                 (
                     TextParameters == input.TextParameters ||
                     (TextParameters != null &&
                      TextParameters.Equals(input.TextParameters))
                 ) &&
                 (
                     TextBoundingBoxLayout == input.TextBoundingBoxLayout ||
                     (TextBoundingBoxLayout != null &&
                      TextBoundingBoxLayout.Equals(input.TextBoundingBoxLayout))
                 ));
        }
        /// <summary>
        /// Returns true if FreeTextAnnotationParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of FreeTextAnnotationParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(FreeTextAnnotationParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     AnnotationLayout == input.AnnotationLayout ||
                     (AnnotationLayout != null &&
                      AnnotationLayout.Equals(input.AnnotationLayout))
                     ) &&
                 (
                     TextParameters == input.TextParameters ||
                     (TextParameters != null &&
                      TextParameters.Equals(input.TextParameters))
                 ) &&
                 (
                     Title == input.Title ||
                     (Title != null &&
                      Title.Equals(input.Title))
                 ) &&
                 (
                     Subject == input.Subject ||
                     (Subject != null &&
                      Subject.Equals(input.Subject))
                 ) &&
                 (
                     ShowBorder == input.ShowBorder ||
                     ShowBorder.Equals(input.ShowBorder)
                 ) &&
                 (
                     Color == input.Color ||
                     (Color != null &&
                      Color.Equals(input.Color))
                 ));
        }