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





In This Topic
ForceScrollBars Property (GdViewer)
In This Topic
Determines if both scrollbars must always be visible, whatever the zoom configuration is.

Turning this property to true forces the viewer to always display the scrollbars. If you set this property to false, both scrollbars will display according to the ScrollBars property.

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

Property Value

The default value is false.
Remarks
Please ensure that you have correctly set the ScrollBars property to enable or disable displaying the scrollbars if necessary.
Example
How to utilize this property in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated
'and your document has been properly displayed as well.
If (GdViewer1.HScrollVisible = False) OrElse (GdViewer1.VScrollVisible = False) Then
    GdViewer1.ScrollBars = True
    GdViewer1.ForceScrollBars = True
End If
//We assume that the GdViewer1 control has been properly integrated
//and your document has been properly displayed as well.
if ((GdViewer1.HScrollVisible == false) || (GdViewer1.VScrollVisible == false))
{
    GdViewer1.ScrollBars = true;
    GdViewer1.ForceScrollBars = true;
}
See Also