[]
        
(Showing Draft Content)

C1.Framework.ScrollableControl

ScrollableControl Class

Defines an abstract base class for controls that support auto-scrolling behavior.

Inheritance
ScrollableControl
Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public abstract class ScrollableControl : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable

Constructors

Name Description
ScrollableControl()

Initializes the ScrollableControl properties.

Fields

Name Description
SB_BOTH
SB_BOTTOM
SB_CTL
SB_ENDSCROLL
SB_HORZ
SB_LINEDOWN
SB_LINEUP
SB_PAGEDOWN
SB_PAGEUP
SB_THUMBPOSITION
SB_THUMBTRACK
SB_TOP
SB_VERT
WM_HSCROLL
WM_LBUTTONUP
WM_MOUSEMOVE
WM_NCCALCSIZE
WM_NCHITTEST
WM_NCLBUTTONDOWN
WM_NCLBUTTONUP
WM_NCMOUSEHOVER
WM_NCMOUSELEAVE
WM_NCMOUSEMOVE
WM_NCPAINT
WM_SETREDRAW
WM_VSCROLL

Properties

Name Description
BorderColor

Gets or sets the color of the control border.

BorderStyle

Gets or sets the BorderStyle value determining the type of border around the control.

CreateParams

This member overrides CreateParams.

Cursor

Gets or sets the Cursor that appears when the mouse moves over the control.

IsRtlScroll

Gets or sets a value indicating whether th Control supported rtl scroll or not.

IsRtlScrollingSupported

Gets a value determining behavior of scroll in rtl mode.

ScrollBars

Gets or sets which scroll bars should appear on the control.

ScrollPosition

Gets or sets the Point value determining the current scroll position.

ScrollSize

Gets or sets the size of the document.

ScrollTrack

Gets or sets whether the control should scroll as the user drags the scrollbar thumb.

ScrollableRectangle

This property is used to set the scroll page size. Override it to customize the scrolling behavior.

SettingScrollSize

Gets the state of scrolling.

SmallChange

Gets or sets the distance to move a scroll bar in response to a small scroll command.

Text

Gets or sets the text associated with the control.

UseScrollWindow

Gets or sets a bool value determining whether control shows scroll bars.

VerticalScrollBarIsVisible

Gets the state of vertical scrollbar.

Methods

Name Description
BuildScrollableRectangle(int, int)

This method is used to set the scroll rectangle. Override it to customize the scrolling behavior.

GetScrollOnePercent(IntPtr, int)

Gets size of one percent of scroll.

GetScrollPercent(IntPtr, int)

Gets percent of scrolled.

GetScrollPos(int)

Gets the scroll position of the specified scroll bar.

GetScrollSize(int)

Retrieves the specified scroll bar range.

GetTrackPos(int)

Gets the immediate position of the specified scroll box that the user is dragging.

HandleScrollMessage(Message)

Handles scroll messages.

OnInvalidated(InvalidateEventArgs)

This member overrides OnInvalidated(InvalidateEventArgs).

OnMouseWheel(MouseEventArgs)

This member overrides OnMouseWheel(MouseEventArgs).

OnPaint(PaintEventArgs)

This member overrides OnPaint(PaintEventArgs).

OnScroll(ScrollBars)

Override this method to get notifications when the control scrolls.

OnScrollBarsChanged()

Raises the ScrollBarsChanged event.

OnScrollSizeChanged()

Raises the ScrollSizeChanged event.

OnSizeChanged(EventArgs)

This member overrides OnSizeChanged(EventArgs).

PercentScrollVertical(double)

Scrolls vertically for percent.

ScrollVertical(bool, bool)

Scrolls vertically for changes.

SetClientSizeCore(int, int)

This member overrides SetClientSizeCore(int, int). Override this method to account for scrollbars size.

SetScrollPos(int, int)

Sets the position of the specified scroll bar.

WndProc(ref Message)

This member overrides WndProc(ref Message).

Events

Name Description
Scroll

Occurs when the user or code scrolls through the client area.

ScrollBarsChanged

Occurs when the ScrollBars property changed.

ScrollSizeChanged

Occurs when the ScrollSize property changed.