GdPicture.NET.14
GdPicture14.WPF Namespace / GdViewer Class / RectBorderColor Property
Example





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

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

Syntax
'Declaration
 
Public Property RectBorderColor As Color
public Color RectBorderColor {get; set;}
public read-write property RectBorderColor: Color; 
public function get,set RectBorderColor : Color
public: __property Color get_RectBorderColor();
public: __property void set_RectBorderColor( 
   Color value
);
public:
property Color RectBorderColor {
   Color get();
   void set (    Color value);
}

Property Value

The default value is Color.Black.
Remarks
Please note that the property value does not change when reloading documents in the viewer, while other rectangle's data are removed.
Example
How to reset the border color 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