GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / GdViewer Constructor
Example





In This Topic
GdViewer Constructor
In This Topic
A standard constructor for the GdViewer class. It initializes an instance of the GdViewer class, which subsequently allows you to perform all available operations with supported documents.
Syntax
'Declaration
 
Public Function New()
public GdViewer()
public GdViewer(); 
public function GdViewer();
public: GdViewer();
public:
GdViewer();
Remarks
Please find our Document Viewer Sample here to fully see, how to create, integrate and use the GdViewer control in your application.
Example
How to create and integrate the GdViewer control into your application.
'Define GdViewer object in your application.
Friend WithEvents GdViewer1 As GdViewer
            
'Create an instance.
GdViewer1 = New GdViewer()
            
'Set your preferred properties here.
GdViewer1.Name = "GdViewer1"
GdViewer1.SetBackgroundColor(GdViewer1.ARGBI(255, 245, 245, 220))
' ...
            
'Add to your application controls.
Controls.Add(GdViewer1)
            
'Probably the GdViewer1 instance is disposed of automatically in your application,
'but you can still do it this way.
'GdViewer1.Dispose()
//Define GdViewer object in your application.
internal GdViewer GdViewer1;
            
//Create an instance.
GdViewer1 = new GdViewer();
            
//Set your preferred properties here.
GdViewer1.Name = "GdViewer1";
GdViewer1.SetBackgroundColor(GdViewer1.ARGBI(255, 245, 245, 220));
// ...
            
//Add to your application controls.
Controls.Add(GdViewer1);
            
//Probably the GdViewer1 instance is disposed of automatically in your application,
//but you can still do it this way.
//GdViewer1.Dispose();
See Also