This document is archived and information here might be outdated.  Recommended version.

IActiveView.ShowScrollBars Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IActiveView Interface > IActiveView.ShowScrollBars Property
ArcGIS Developer Help

IActiveView.ShowScrollBars Property

Indicates if scrollbars are visible.

[Visual Basic .NET]
Public Property ShowScrollBars As Boolean
public bool ShowScrollBars {get; set;}
HRESULT get_ShowScrollBars(
  Boolean* ShowScrollBars
HRESULT put_ShowScrollBars(
  VARIANT_BOOL ShowScrollBars
ShowScrollBars [out, retval]

ShowScrollBars is a parameter of type bool* ShowScrollBars [in]
ShowScrollBars is a parameter of type bool

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


IActiveView::ShowScrollBars is a short cut to IScreenDisplay::UseScrollBars.  Changes to this property are not reflected until the active view changes.  For example, when in layout view in ArcMap, programmatically changing the PageLayout to not show its scrollbar will have no effect until the next time the active view is set to the PageLayout - calling IActiveView::Refresh has no effect.

ArcMap uses this property to hide Map's scroll bars when in layout view.  Programmatically trying to display a Map's scroll bar in layout view will have no effect, for Maps this setting is only honored in data view and again it requires an active view change before the setting is reflected in the applications window.


See Also

IActiveView Interface