This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IS > IScreenDisplay Interface > IScreenDisplay.UseScrollbars Property (ArcObjects .NET 10.4 SDK) |
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
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.