VerticalScrollBarVisible Property
In This Topic
Returns if the vertical scrollbar is visible, means displayed, or not in the GdViewer control.
Syntax
'Declaration
Public ReadOnly Property VerticalScrollBarVisible As Boolean
public bool VerticalScrollBarVisible {get;}
public read-only property VerticalScrollBarVisible: Boolean;
public function get VerticalScrollBarVisible : boolean
public: __property bool get_VerticalScrollBarVisible();
public:
property bool VerticalScrollBarVisible {
bool get();
}
Property Value
true if the vertical scrollbar is visible, otherwise false.
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.HorizontalScrollBarVisible = False) OrElse (GdViewer1.VerticalScrollBarVisible = 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.HorizontalScrollBarVisible == false) || (GdViewer1.VerticalScrollBarVisible == false))
{
GdViewer1.ScrollBars = true;
GdViewer1.ForceScrollBars = true;
}
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.HorizontalScrollBarVisible = False) OrElse (GdViewer1.VerticalScrollBarVisible = 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.HorizontalScrollBarVisible == false) || (GdViewer1.VerticalScrollBarVisible == false))
{
GdViewer1.ScrollBars = true;
GdViewer1.ForceScrollBars = true;
}
See Also