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


IARControl.ShowScrollbars Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARControl Interface > IARControl.ShowScrollbars Property
ArcGIS Developer Help

IARControl.ShowScrollbars Property

Indicates if the map and page layout scrollbars are visible.

[Visual Basic .NET]
Public Function get_ShowScrollbars ( _
    ByVal viewType As esriARViewType _
) As Boolean
[Visual Basic .NET]
Public Sub set_ShowScrollbars ( _
    ByVal viewType As esriARViewType, _
    ByVal Show As Boolean _
)
[C#]
public bool get_ShowScrollbars (
    esriARViewType viewType
);
[C#]
public void set_ShowScrollbars (
    esriARViewType viewType,
    bool Show
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Determines whether scrollbars are shown when the CurrentView is an ARPageLayout, and whether scrollbars are shown when the CurrentView is an IARPageLayout::ARMap. The ARPageLayout and ARMap views both have independent scrollbars that are shown at the bottom edge and right hand side of the CurrentView. The Scrollbars will always be displayed regardless of the visible extent of the CurrentView. By default the ShowScrollbars property is true in both cases.

Errors Returned

2015 800A07DF: The specified view type is invalid 

[C#]

In C# use the get_ShowScrollbars and set_ShowScrollbars methods, as indexed property accessors are not supported.

[Visual Basic .NET]

The IARControl, (and higher numbered IARControl interfaces) and IARControlDefault interfaces have a default indexed property called ShowScrollbars. The ArcReaderControl interop assembly which provides access to these interfaces have the default ShowScrollbars property. However, if you are working directly with the AxArcReaderControl class use the get_ShowScrollbars and set_ShowScrollbars methods.

See Also

IARControl Interface