Table of Contents

Class ScrollableUserControl

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Extends UserControl to provide scrollable functionality.

public class ScrollableUserControl : UserControl, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo
Inheritance
ScrollableUserControl
Implements
Derived

Constructors

ScrollableUserControl()

Initializes a new instance of the ScrollableUserControl class.

Fields

DefaultBorderStyle

Specifies the default border style for controls. By default, it equals Theme.

DefaultHorizontalScrollBarLargeIncrement

Defines the default increment for horizontal scrollbar position. Value is specified in characters. Default is 4.

DefaultUseInternalScrollBars

Indicates whether the list box controls use internal scrollbars.

Properties

BorderStyle

Gets or sets border style of the control.

Cursor

Gets or sets the cursor that the control should normally display.

HasBorder

Gets or sets a value indicating whether the control has a border.

HasHorizontalScrollBarSettings

Indicates whether horizontal scrollbar settings are defined.

HasInterior

Gets whether the control has initialized Interior.

HasOwnInterior

Gets a value indicating whether the control has internal scroll bars.

HasVerticalScrollBarSettings

Indicates whether vertical scrollbar settings are defined.

HorizontalScrollBarSettings

Gets the horizontal scrollbar settings. Initializes them if required.

Interior

Gets control interior element (border and scrollbars). Interior is created on demand. So if you need to check whether the control has interior, use HasInterior property.

RenderingFlags

Gets or sets the rendering flags that determine how the control is rendered.

ScrollEventRouter

Gets the router responsible for handling scroll events.

UseInternalScrollBars

Gets or sets whether the control uses internal scrollbars.

VerticalScrollBarSettings

Gets the vertical scrollbar settings. Initializes them if required.

Methods

AfterVertScrollBarPaint(ref PaintDelegateParams)

Performs additional operations after the vertical scroll bar has been painted.

DrawInterior(Graphics)

Draws the interior of the control, including borders and scrollbars.

GetOverlayRectangle()

Gets rectangle to which the overlay should be fitted.

GetPaintRectangle()

Gets the rectangle that represents the paintable area of the control.

GetScrollBarInfo(bool)

Gets vertical or horizontal scrollbar position as ScrollBarInfo.

IsMouseOverScrollBar()

Determines whether the mouse pointer is currently positioned over a scroll bar or thumb within the control.

OnCursorRequested(EventArgs)

Invoked when a cursor request event occurs.

OnHandleCreated(EventArgs)

Called when the control's handle is created.

OnHasInternalScrollBarsChanged()

Called when the UseInternalScrollBars property changes.

OnMouseWheel(MouseEventArgs)

Called when the MouseWheel event is raised.

OnScroll(ScrollEventArgs)

Called when Scroll event is raised.

OnSizeChanged(EventArgs)

Called when the SizeChanged event.

OnSystemColorsChanged(EventArgs)

Called when the SystemColorsChanged event is raised.

RemoveInterior()

Removes the interior which draws and manages the scrollbars.

SetInternalScrollBarsImmutable()

Marks the UseInternalScrollBars property as immutable, preventing further modifications.

SetScrollBarInfo(bool, ScrollBarInfo)

Sets vertical or horizontal scrollbar position as ScrollBarInfo.

UpdateInteriorProperties()

Updates the interior properties such as theme metrics and scrollbar positions.

UpdateScrollBars(bool)

Updates the vertical and horizontal scrollbars.