Example





In This Topic
GdPicture14.WPF Namespace / GdViewer Class / RectBorderSize Property

RectBorderSize Property (GdViewer)

In This Topic
Gets or sets the border size (the border width), in pixels, of the rectangle of area selection, that is related to the document currently displayed in the GdViewer control. This value is used when drawing the rectangle of selection within the viewer.

You can find out, if this rectangle is currently defined and drawn, using the IsRect method.

Syntax
'Declaration
 
Public Property RectBorderSize As Double
public double RectBorderSize {get; set;}
public read-write property RectBorderSize: Double; 
public function get,set RectBorderSize : double
public: __property double get_RectBorderSize();
public: __property void set_RectBorderSize( 
   double value
);
public:
property double RectBorderSize {
   double get();
   void set (    double value);
}

Property Value

The default value is 1.
Remarks
Be aware that you are allowed to define only one rectangle of selection within the current viewer. The property value does not change when reloading documents in the viewer.
Example
How to reset the border size of the rectangle of selection.
'We assume that the GdViewer1 control has been properly integrated.
'Setting some custom properties (the border color and the border size) for the rectangle of selection.
GdViewer1.RectBorderColor = Color.FromArgb(255, 255, 69, 0)
GdViewer1.RectBorderSize = 2
//We assume that the GdViewer1 control has been properly integrated
//Setting some custom properties (the border color and the border size) for the rectangle of selection.
GdViewer1.RectBorderColor = Color.FromArgb(255, 255, 69, 0);
GdViewer1.RectBorderSize = 2;
See Also