gtk-sharpGtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Gtk.BinAdds scrollbars to its child widget.
GtkScrolledWindow is a 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 objects. Widgets with native scroll support include , , and .
The position of the scrollbars is controlled by the scroll adjustments. See for the properties in an adjustment - for , used by , the property represents the position of the scrollbar, which must be between the and - . The property represents the size of the visible scrollable area. The and properties are used when the user asks to step down (using the small stepper arrows) or page down (using for example the PageDown key).
ConstructorBasic constructor.Constructor
Pointer to the C object.
Internal constructorThis is an internal constructor, and should not be used by user code.Constructor
Horizontal adjustment.
Vertical adjustment.
Creates a new scrolled window.
Creates a new scrolled window. The two arguments are the scrolled window's adjustments; these will be shared with the scrollbars and the child widget to keep the bars in sync with the child. Usually you want to pass for the adjustments, which will cause the scrolled window to create them for you.
MethodSystem.Void
A Used to add children without native scrolling capabilities.
Used to add children without native scrolling capabilities. This is simply a convenience function; it is equivalent to adding the unscrollable child to a viewport, then adding the viewport to the scrolled window. If a child has native scrolling, use instead of this function.
The viewport scrolls the child by moving its , and takes the size of the child to be the size of its toplevel . This will be very wrong for most widgets that support native scrolling; for example, if you add a widget such as with a viewport, the whole widget will scroll, including the column headings. Thus, widgets with native scrolling support should not be used with the proxy.
A widget supports scrolling natively if the set_scroll_adjustments_signal field in GtkWidgetClass is non-zero, i.e. has been filled in with a valid signal identifier.
MethodSystem.Void
Location to store the policy for the horizontal scrollbar.
Location to store the policy for the horizontal scrollbar.
Retrieves the current policy values for the horizontal and vertical scrollbars.
Retrieves the current policy values for the horizontal and vertical scrollbars.
PropertyGLib.GTypeGType Property.a Returns the native value for .PropertyGLib.Property("hadjustment")Gtk.AdjustmentSets the for the horizontal scrollbar.The horizontal GtkAdjustment.PropertyGtk.WidgetHorizontal Scrollbar.the horizontal if it exists, or .PropertyGLib.Property("hscrollbar-policy")Gtk.PolicyTypeWhen the horizontal scrollbar is displayed.A PropertyGLib.Property("min-content-height")System.Int32To be added.To be added.To be added.PropertyGLib.Property("min-content-width")System.Int32To be added.To be added.To be added.EventGLib.Signal("move-focus-out")Gtk.MoveFocusOutHandlerRaised when the focus moves out of the scrolled window.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideMoveFocusOut", Type=typeof(Gtk.ScrolledWindow))System.Void
a Default handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideScrollChild", Type=typeof(Gtk.ScrolledWindow))System.Void
a
a Default handler for the event.Override this method in a subclass to provide a default handler for the event.PropertyGtk.CornerTypeDetermines the location of the child widget with respect to the scrollbars.
Determines the location of the child widget with respect to the scrollbars. The default is , meaning the child is in the top left, with the scrollbars underneath and to the right. Other values in are , , and .
EventGLib.Signal("scroll-child")Gtk.ScrollChildHandlerRaised when the child widget is scrolled.MethodSystem.Void
Policy for horizontal bar.
Policy for vertical bar.
Sets the scrollbar policy for the horizontal and vertical scrollbars.
Sets the scrollbar policy for the horizontal and vertical scrollbars. The policy determines when the scrollbar should appear; it is a value from the enumeration. If , the scrollbar is always present; if , the scrollbar is never present; if , the scrollbar is present only if needed (that is, if the slider part of the bar would be smaller than the trough - the display is larger than the page size).
PropertyGLib.Property("shadow-type")Gtk.ShadowTypeGets the shadow type of the scrolled window.The current shadow type.MethodSystem.VoidDisables explicit window placement.PropertyGLib.Property("vadjustment")Gtk.AdjustmentSets or Gets the for the vertical scrollbar.The vertical GtkAdjustment.PropertyGtk.WidgetVertical Scrollbar.the vertical if it exists, or .PropertyGLib.Property("vscrollbar-policy")Gtk.PolicyTypeWhen the vertical scrollbar is displayed.A PropertyGLib.Property("window-placement")Gtk.CornerTypeWhere the contents are located with respect to the scrollbars.A PropertyGLib.Property("window-placement-set")System.BooleanIndicates if an explicit placement is set.if , explicit placement is enabled.