Show / Hide Table of Contents

Class Annot.BorderStyle

BorderStyle structure specifies the characteristics of the annotation's border. The border is specified as a rounded rectangle.

Inheritance
System.Object
Annot.BorderStyle
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: pdftron.PDF
Assembly: PDFNetAndroid.dll
Syntax
public class BorderStyle

Constructors

BorderStyle(Annot.BorderStyle.Style, Double)

Creates a new border style with given parameters.

Declaration
public BorderStyle(Annot.BorderStyle.Style s, double b_width)
Parameters
Type Name Description
Annot.BorderStyle.Style s

The border style.

System.Double b_width

The border width expressed in the default user space.

BorderStyle(Annot.BorderStyle.Style, Double, Double, Double)

Creates a new border style with given parameters.

Declaration
public BorderStyle(Annot.BorderStyle.Style s, double b_width, double b_hr, double b_vr)
Parameters
Type Name Description
Annot.BorderStyle.Style s

The border style.

System.Double b_width

The border width expressed in the default user space.

System.Double b_hr

The horizontal corner radius expressed in the default user space.

System.Double b_vr

The vertical corner radius expressed in the default user space. in drawing the border. The dash array is specified in the same format as in the line dash pattern parameter of the graphics state except that the phase is assumed to be 0.

Remarks

If the corner radii are 0, the border has square (not rounded) corners; if the border width is 0, no border is drawn.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

BorderStyle(Annot.BorderStyle.Style, Double, Double, Double, Double[])

Creates a new border style with given parameters.

Declaration
public BorderStyle(Annot.BorderStyle.Style s, double b_width, double b_hr, double b_vr, double[] dash_array)
Parameters
Type Name Description
Annot.BorderStyle.Style s

The border style.

System.Double b_width

The border width expressed in the default user space.

System.Double b_hr

The horizontal corner radius expressed in the default user space.

System.Double b_vr

The vertical corner radius expressed in the default user space.

System.Double[] dash_array

An array of numbers defining a pattern of dashes and gaps to be used in drawing the border. The dash array is specified in the same format as in the line dash pattern parameter of the graphics state except that the phase is assumed to be 0.

Remarks

If the corner radii are 0, the border has square (not rounded) corners; if the border width is 0, no border is drawn.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Properties

border_style

the border style

Declaration
public Annot.BorderStyle.Style border_style { get; set; }
Property Value
Type Description
Annot.BorderStyle.Style

dash

the border dash pattern

Declaration
public double[] dash { get; set; }
Property Value
Type Description
System.Double[]

hr

horizontal corner radius

Declaration
public double hr { get; set; }
Property Value
Type Description
System.Double

vr

vertical corner radius

Declaration
public double vr { get; set; }
Property Value
Type Description
System.Double

width

the border width

Declaration
public double width { get; set; }
Property Value
Type Description
System.Double
In This Article
Back to top Generated by DocFX