/// <summary>Setter for the annotation's preset dashed border style.</summary>
 /// <remarks>
 /// Setter for the annotation's preset dashed border style. This property has affect only if
 /// <see cref="PdfAnnotation.STYLE_DASHED"/>
 /// style was used for the annotation border style (see
 /// <see cref="SetBorderStyle(iText.Kernel.Pdf.PdfName)"/>.
 /// See ISO-320001 8.4.3.6, "Line Dash Pattern" for the format in which dash pattern shall be specified.
 /// </remarks>
 /// <param name="dashPattern">
 /// a dash array defining a pattern of dashes and gaps that
 /// shall be used in drawing a dashed border.
 /// </param>
 /// <returns>
 /// this
 /// <see cref="PdfWidgetAnnotation"/>
 /// instance.
 /// </returns>
 public virtual iText.Kernel.Pdf.Annot.PdfWidgetAnnotation SetDashPattern(PdfArray dashPattern)
 {
     return(SetBorderStyle(BorderStyleUtil.SetDashPattern(GetBorderStyle(), dashPattern)));
 }
 /// <summary>Setter for the annotation's preset border style.</summary>
 /// <remarks>
 /// Setter for the annotation's preset border style. Possible values are
 /// <list type="bullet">
 /// <item><description>
 /// <see cref="PdfAnnotation.STYLE_SOLID"/>
 /// - A solid rectangle surrounding the annotation.
 /// </description></item>
 /// <item><description>
 /// <see cref="PdfAnnotation.STYLE_DASHED"/>
 /// - A dashed rectangle surrounding the annotation.
 /// </description></item>
 /// <item><description>
 /// <see cref="PdfAnnotation.STYLE_BEVELED"/>
 /// - A simulated embossed rectangle that appears to be raised above the surface of the page.
 /// </description></item>
 /// <item><description>
 /// <see cref="PdfAnnotation.STYLE_INSET"/>
 /// - A simulated engraved rectangle that appears to be recessed below the surface of the page.
 /// </description></item>
 /// <item><description>
 /// <see cref="PdfAnnotation.STYLE_UNDERLINE"/>
 /// - A single line along the bottom of the annotation rectangle.
 /// </description></item>
 /// </list>
 /// See also ISO-320001, Table 166.
 /// </remarks>
 /// <param name="style">The new value for the annotation's border style.</param>
 /// <returns>
 /// this
 /// <see cref="PdfWidgetAnnotation"/>
 /// instance.
 /// </returns>
 /// <seealso cref="GetBorderStyle()"/>
 public virtual iText.Kernel.Pdf.Annot.PdfWidgetAnnotation SetBorderStyle(PdfName style)
 {
     return(SetBorderStyle(BorderStyleUtil.SetStyle(GetBorderStyle(), style)));
 }