SetBackgroundColor Method (GdViewer)
In This Topic
Sets the background color of this GdViewer control.
Syntax
'Declaration
Public Sub SetBackgroundColor( _
ByVal As Integer _
)
public void SetBackgroundColor(
int
)
public procedure SetBackgroundColor(
: Integer
);
public function SetBackgroundColor(
: int
);
public: void SetBackgroundColor(
int
)
public:
void SetBackgroundColor(
int
)
Parameters
- Color
- A required color value to be set as the new background color for the viewer. Use the ARGBI method to obtain this value.
Example
How to set the new background color.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(GdViewer1.ARGBI(255, 250, 235, 215))
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(GdViewer1.ARGBI(255, 250, 235, 215));
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(Color.AntiqueWhite.ToArgb())
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(Color.AntiqueWhite.ToArgb());
Example
How to set the new background color.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(GdViewer1.ARGBI(255, 250, 235, 215))
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(GdViewer1.ARGBI(255, 250, 235, 215));
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(Color.AntiqueWhite.ToArgb())
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(Color.AntiqueWhite.ToArgb());
See Also