Table of Contents

Class Scrolling

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

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

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

Constructors

Scrolling(TextEditor)

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

Properties

Annotations

Gets the scroll bars annotations control interface.

FixedScrollSize

Indicates whether horz scrollbar has fixed size.

HScrollBar

Gets horizontal scroll bar control.

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

Indicates whether horizontal scrollbar is visible.

Options

Gets or sets a ScrollingOptions that determine scrolling behavior.

Owner

Represents owner of this IScrolling object.

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.

VertButtons

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

VertScrollbarVisible

Indicates whether vertical scrollbar is visible.

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

Assign(IScrolling)

Copies the contents of another IScrolling object.

BeginUpdate()

Prevents Scrolling updating until the EndUpdate method is called.

CreateAnnotations()
DisableUpdate()

Prevents object state updating until calling EnableUpdate method.

Dispose()

Release resources of the Scrolling object.

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.

MouseScroll(int)

Scrolls editor control vertically.

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

Raises ScrollButtonClick event.

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

Resets the Options to the default value.

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 Rect)
UpdateScrollPosition()
UpdateScrollSize(bool)
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.