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


IScreenDisplay.UseScrollbars Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Display)  

IScreenDisplay.UseScrollbars Property

Indicates if scrollbars should appear.

[Visual Basic .NET]
Public Property UseScrollbars As Boolean
[C#]
public bool UseScrollbars {get; set;}
[C++]
HRESULT get_UseScrollbars(
  VARIANT_BOOL* flag
);
[C++]
HRESULT put_UseScrollbars(
  VARIANT_BOOL flag
);
[C++]

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

Product Availability

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

Remarks

IActiveView::ShowScrollBars redirects all its calls to this property.

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 scrollbars 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 the 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 Map's 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

IScreenDisplay Interface