GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / DrawPageBorders Property
Example





In This Topic
DrawPageBorders Property (GdViewer)
In This Topic
Specifies if borders are to be drawn around the pages displayed in the GdViewer control, for example, to provide the contrast between the page background and the control background.

You can define the page border's color and its size as well.

Syntax
'Declaration
 
Public Property DrawPageBorders As Boolean
public bool DrawPageBorders {get; set;}
public read-write property DrawPageBorders: Boolean; 
public function get,set DrawPageBorders : boolean
public: __property bool get_DrawPageBorders();
public: __property void set_DrawPageBorders( 
   bool value
);
public:
property bool DrawPageBorders {
   bool get();
   void set (    bool value);
}

Property Value

The default value is true.
Example
How to enable page borders drawing.
'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