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





RectBorderColor Property (GdViewer)
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 control.

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

Syntax
'Declaration
 
Public Property RectBorderColor As Color
 

Property Value

The default value is Color.Black.
Remarks
Please note that the property value does not change when reloading documents in the GdViewer control, 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 = GdViewer1.ARGB(255, 69, 0)
GdViewer1.RectBorderSize = 2
See Also