ImageGear .NET v25.2 - Updated
ScrollBars Enumeration

ImageGear.Web.UI Library > ImageGear.Web.UI Namespace : ScrollBars Enumeration
Indicates how the image viewer will handle its scrollbars.
Members
MemberDescription
Auto4 - Display scrollbars only when needed. This is the same as setting the CSS overflow property of an HTML element to "auto".
Both3 - Always display scrollbars. This is the same as setting the CSS overflow property of an HTML element to "scroll".
None0 - Never display scrollbars. This is the same as setting the CSS overflow property of an HTML element to "hidden".
Remarks

This enumeration indicates how scrollbars should be handled by a viewer. You can choose to never display scrollbars (None), always display scrollbars (Both), or only display scrollbars when needed (Auto).

You should normally use Auto, but if you know the viewer will never need scrolbars, use None. When you use Auto, the viewer will sometimes draw the image twice whenever the scrollbars appear or disappear, which can be distracting. If you wish, you can set this value to Both to avoid that problem.

This value is closely related to the CSS property, overflow. You cannot set this value using CSS because the viewer has to use different rendering approaches on different browsers.

This enumeration is patterned after System.Web.UI.WebControls.Scrollbars, but without the non-standard values, Horizontal and Vertical.

Inheritance Hierarchy

Object
   ImageGear.Web.UI.ScrollBars

See Also

Reference

ImageGear.Web.UI Namespace

Is this page helpful?
Yes No
Thanks for your feedback.