Table of Contents

Class Scrolling

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

Represents properties and methods that describe scrolling behaviour of Edit control.

public class Scrolling : IScrolling, IUpdate, IDisposable
Inheritance
Scrolling
Implements

Constructors

Scrolling(ISyntaxEdit)

Initializes a new instance of the Scrolling class with a specified owner.

Properties

Annotations

Gets the scroll bars annotations control interface.

DefaultHorzScrollSize

Gets or sets a default size of horizontal scrollbar.

FixedScrollSize

Indicates whether horz scrollbar has fixed size.

HScrollBar

Gets horizontal scroll bar control.

HSplitCursor
HasHScrollBar

Indicates whether control has a horizontal scroll bar control.

HasVScrollBar

Indicates whether control has a vertical scroll bar control.

HorzButtons

Represents a collection of additional buttons displayed at the horizontal scroll bar area.

HorzScrollbarVisible

When implemented by a class, indicates whether horizontal scrollbar is visible.

HorzSplitButton

Represents a special button on the scroll area used split Edit control horizontally.

Options

Gets or sets a ScrollingOptions that determine scrolling behaviour.

Owner

Represents owner of this IScrolling object.

ScrollBars

Gets or sets the type of scroll bars displayed in the control.

ScrollBarsCornerColor

Indicates color of the corner between scroll bars for the current visual style.

ScrollBarsVisualStyle

Gets or sets the scroll bars visual style displayed in the control.

ScrollByPixels

Indicates whether scrollbars should use pixels rather than characters.

SmoothTimer
UpdateCount

Keeps track of calls to BeginUpdate and EndUpdate so that they can be nested.

VScrollBar

Gets vertical scroll bar control.

VSplitCursor
VertButtons

Represents a collection of additional buttons displayed at the vertical scroll bar area.

VertScrollbarVisible

When implemented by a class, indicates whether vertical scrollbar is visible.

VertSplitButton

Represents a special button on the scroll area used to split Edit control vertically.

WindowOriginX

Gets or sets a index of the first visible character within the control.

WindowOriginY

Gets or sets a value that represents first visible line within the control.

Methods

ApplyTheme(IVisualTheme)

Applies a visual theme to the IScrolling control.

Assign(IScrolling)

Copies the contents of another IScrolling object.

BeginUpdate()

Prevents Scrolling updating until the EndUpdate method is called.

CanSplitHorz()
CanSplitVert()
CreateAnnotations()
CreateSplitterButton(bool)
DisableUpdate()

Prevents object state updating until calling EnableUpdate method.

Dispose()

Disposes this Scrolling and frees resources associated with it.

Dispose(bool)
DoHorizontalScroll(int)
DoHorizontalScroll(ScrollEventType, int)
DoVerticalScroll(int)
DoVerticalScroll(ScrollEventType, int)
EnableUpdate()

Re-enables object state updating, that was turn of by calling DisableUpdate method. Using DisableUpdate/EnableUpdate to prevent notifying about updating the object state.

EndUpdate()

Re-enables Scrolling updating turned off by calling BeginUpdate method.

~Scrolling()

Destroys the instance of the Scrolling class.

HScrollBar_Scroll(object, ScrollEventArgs)
InvalidateLines(int, int)
MouseScroll(int)

Scrolls editor control vertically.

NeedSmoothScroll()
OnDefaultHorzScrollSizeChanged()
OnHorizontalScroll()
OnScrollBarsChanged()
OnScrollButtonClick(object, EventArgs)

Raises ScrollButtonClick event.

OnSmoothTimer(object, EventArgs)
OnVerticalScroll()
RemoveScrollbars(bool)
RepositionScrollBars()
ResetDefaultHorzScrollSize()

Resets the DefaultHorzScrollSize to the default value.

ResetOptions()

Resets the Options to the default value.

ResetScrollBars()

Resets the ScrollBars to the default value.

ScrollHeight()
ScrollWidth()
ShouldSerializeDefaultHorzScrollSize()

Indicates whether the DefaultHorzScrollSize property should be persisted.

ShouldSerializeOptions()

Indicates whether the Options property should be persisted.

SmoothScroll(int, int)
SplitterMouseDown(object, MouseEventArgs)
SystemScroll(int, bool)

Performs a system scrolls by calling Windows API.

Update()

Updates the Scrolling size and position.

UpdateFlat()

Initializes flat scroll bars for editor control.

UpdateScroll()

Updates scrolling control.

UpdateScroll(bool)

Updates scrolling control.

UpdateScrollButtons(IScrollingButtons, bool, ref Rectangle)
UpdateScrollPosition()
UpdateScrollSize(bool)
UpdateScrollSplitters(bool, ref Rectangle)
VScrollBar_Scroll(object, ScrollEventArgs)
WindowOriginChanged(int, int, bool)

Events

HorizontalScroll

Occurs when control scrolls its content in horizontal direction. This can be caused by dragging horizontal scroll thumb, or caret moving.

ScrollButtonClick

Occurs when some scrolling button is clicked.

VerticalScroll

Occurs when control scrolls its content in vertical direction. This can be caused by dragging vertical scroll thumb, or caret moving.