Gtk.ScrolledWindow Class
Adds scrollbars to its child widget.

See Also: ScrolledWindow Members

Syntax

public class ScrolledWindow : Bin

Remarks

GtkScrolledWindow is a Gtk.Bin subclass: it's a container the accepts a single child widget. GtkScrolledWindow adds scrollbars to the child widget and optionally draws a beveled frame around the child widget.

The scrolled window can work in two ways. Some widgets have native scrolling support; these widgets have "slots" for Gtk.Adjustment objects. Widgets with native scroll support include Gtk.TreeView, Gtk.TextView, and Gtk.Layout.

The position of the scrollbars is controlled by the scroll adjustments. See Gtk.Adjustment for the properties in an adjustment - for Gtk.Scrollbar, used by Gtk.ScrolledWindow, the Adjustment.Value property represents the position of the scrollbar, which must be between the Adjustment.Lower and Adjustment.Upper - Adjustment.PageSize. The Adjustment.PageSize property represents the size of the visible scrollable area. The Adjustment.StepIncrement and Adjustment.PageIncrement properties are used when the user asks to step down (using the small stepper arrows) or page down (using for example the PageDown key).

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)
Assembly Versions: 2.12.0.0