[]
Base class for controls that support auto-scrolling behavior.
public abstract class ScrollableControl : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
This class is similar to ScrollableControl, but provides extra customization, better scroll notification, and support for scroll tracking.
| Name | Description |
|---|---|
| ScrollableControl() | Creates a new instance of a ScrollableControl class. |
| Name | Description |
|---|---|
| BorderStyle | Gets or sets the type of border around the control. |
| ScrollBars | Gets or sets which scroll bars should appear on the control. |
| ScrollBarsVisible | Gets a ScrollBars value that indicates which scrollbars are currently visible. |
| ScrollPosition | Gets or sets the location of the auto-scroll position. |
| ScrollableRectangle | Gets a rectangle that defines the scrollable portion of the control. |
| VerticalScrollBarIsVisible | Gets the state of vertical scrollbar. |
| Name | Description |
|---|---|
| BeginUpdate() | Maintains performance by preventing the control from updating itself until the EndUpdate() method is called. |
| BuildScrollableRectangle(int, int) | Builds a rectangle that defines the scrollable portion of the control for a given pair of scroll offsets. |
| DeferUpdate() | Suspends notifications until the returned IDisposable object is disposed. |
| EndUpdate() | Resumes updating the control after calls to the BeginUpdate() method. |
| OnChangeScrollBarPosition(int, bool, int, int) | Calculates the new position of a scrollbar in response to a user command. |
| OnClientSizeChanged(EventArgs) | Raises the ClientSizeChanged event. |
| OnHandleCreated(EventArgs) | Raises the HandleCreated event. |
| OnImeStartComposition() | Called when the control receives a WM_IME_STARTCOMPOSITION message. |
| OnMouseWheel(MouseEventArgs) | Raises the MouseWheel event. |
| OnScroll(ScrollBars) | Called after the control scrolls (see the ScrollPosition property). |
| OnScrollTip(int) | Called before the controls displays a scroll tip. |
| OnSizeChanged(EventArgs) | Raises the SizeChanged event. |
| OnThemeChanged() | Called when the control receives a WM_THEMECHANGED message. |
| UpdateScrollPosition() | Updates position of the scrollbar. |