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





In This Topic
KeepDocumentPosition Property (GdViewer)
In This Topic
Specifies whether the GdViewer control will keep the page position when the displayed page changes or when a new document is loaded.

If the PageDisplayMode property is other than PageDisplayMode.SinglePageView, this property must be set to false.

Syntax
'Declaration
 
Public Property KeepDocumentPosition As Boolean
public bool KeepDocumentPosition {get; set;}
public read-write property KeepDocumentPosition: Boolean; 
public function get,set KeepDocumentPosition : boolean
public: __property bool get_KeepDocumentPosition();
public: __property void set_KeepDocumentPosition( 
   bool value
);
public:
property bool KeepDocumentPosition {
   bool get();
   void set (    bool value);
}

Property Value

The default value is false.
Example
How to utilize this property in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.PageDisplayMode = PageDisplayMode.SinglePageView
GdViewer1.KeepDocumentPosition = True
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.PageDisplayMode = PageDisplayMode.SinglePageView;
GdViewer1.KeepDocumentPosition = true;
See Also