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





In This Topic
IgnoreDocumentResolution Property (GdViewer)
In This Topic
Gets or sets whether the GdViewer control will ignore vertical and horizontal resolutions measurement while displaying a document.
Syntax
'Declaration
 
Public Property IgnoreDocumentResolution As Boolean
public bool IgnoreDocumentResolution {get; set;}
public read-write property IgnoreDocumentResolution: Boolean; 
public function get,set IgnoreDocumentResolution : boolean
public: __property bool get_IgnoreDocumentResolution();
public: __property void set_IgnoreDocumentResolution( 
   bool value
);
public:
property bool IgnoreDocumentResolution {
   bool get();
   void set (    bool value);
}

Property Value

The default value is false.
Remarks
The property can be useful for documents with different horizontal and vertical resolutions to avoid unexpected aspect ratio.
Example
How to utilize this property in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated.
'The control will ignore resolutions measurement while displaying the current document.
GdViewer1.IgnoreDocumentResolution = True
//We assume that the GdViewer1 control has been properly integrated.
//The control will ignore resolutions measurement while displaying the current document.
GdViewer1.IgnoreDocumentResolution = true;
See Also