Example





In This Topic
GdPicture14 Namespace / GdViewer Class / PageBordersPenSize Property

PageBordersPenSize Property (GdViewer)

In This Topic
Gets or sets the page border size (the border width), in pixels, of the page borders, which are drawn around the pages displayed in the GdViewer control. This property is only meanigful when the page borders are enabled using the DrawPageBorders property.
Syntax
'Declaration
 
Public Property PageBordersPenSize As Integer
public int PageBordersPenSize {get; set;}
public read-write property PageBordersPenSize: Integer; 
public function get,set PageBordersPenSize : int
public: __property int get_PageBordersPenSize();
public: __property void set_PageBordersPenSize( 
   int value
);
public:
property int PageBordersPenSize {
   int get();
   void set (    int value);
}

Property Value

The default value is 1 pixel.
Remarks
Please ensure that you have set the DrawPageBorders property to true to enable displaying of page borders.
Example
How to change properties for page borders.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.DrawPageBorders = True
GdViewer1.PageBordersColor = Color.Blue
GdViewer1.PageBordersPenSize = 5
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.DrawPageBorders = true;
GdViewer1.PageBordersColor = Color.Blue;
GdViewer1.PageBordersPenSize = 5;
See Also