SetRectBorderColor Method (GdViewer)
In This Topic
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 and drawn, using the
IsRect method.
The default border color of the rectangle of area selection set by the toolkit is Color.Black. This property does not change its value when reloading documents within the control.
Syntax
'Declaration
Public Sub SetRectBorderColor( _
ByVal As Integer _
)
public void SetRectBorderColor(
int
)
public procedure SetRectBorderColor(
: Integer
);
public function SetRectBorderColor(
: int
);
public: void SetRectBorderColor(
int
)
public:
void SetRectBorderColor(
int
)
Parameters
- Color
- A color value that defines the new border color used to draw the rectangle of area selection. You can obtain a suitable color using the ARGBI method.
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.SetRectBorderColor(GdViewer1.ARGBI(255, 255, 69, 0))
'Calling the method above does the same as setting the property as below.
'GdViewer1.RectBorderColor = GdViewer1.ARGB(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.SetRectBorderColor(GdViewer1.ARGBI(255, 255, 69, 0));
//Calling the method above does the same as setting the property as below.
//GdViewer1.RectBorderColor = GdViewer1.ARGB(255, 69, 0);
GdViewer1.RectBorderSize = 2;
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.SetRectBorderColor(GdViewer1.ARGBI(255, 255, 69, 0))
'Calling the method above does the same as setting the property as below.
'GdViewer1.RectBorderColor = GdViewer1.ARGB(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.SetRectBorderColor(GdViewer1.ARGBI(255, 255, 69, 0));
//Calling the method above does the same as setting the property as below.
//GdViewer1.RectBorderColor = GdViewer1.ARGB(255, 69, 0);
GdViewer1.RectBorderSize = 2;
See Also