ImageGear.Web.UI Namespace Client API Library > ImageGear.Web.UI Namespace : ScrollBars Enumeration |
Member | Description |
---|---|
Auto | 4 - Display scrollbars only when needed. This is the same as setting the CSS overflow property of an HTML element to "auto". |
Both | 3 - Always display scrollbars. This is the same as setting the CSS overflow property of an HTML element to "scroll". |
None | 0 - Never display scrollbars. This is the same as setting the CSS overflow property of an HTML element to "hidden". |
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.
Object
ImageGear.Web.UI.ScrollBars