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


IActiveView.ShowScrollBars Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IActiveView.ShowScrollBars Property

Indicates if scrollbars are visible.

[Visual Basic .NET]
Public Property ShowScrollBars As Boolean
[C#]
public bool ShowScrollBars {get; set;}
[C++]
HRESULT get_ShowScrollBars(
  VARIANT_BOOL* ShowScrollBars
);
[C++]
HRESULT put_ShowScrollBars(
  VARIANT_BOOL ShowScrollBars
);
[C++]

Parameters ShowScrollBars [out, retval] ShowScrollBars is a parameter of type VARIANT_BOOL ShowScrollBars [in] ShowScrollBars is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

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