Class Scrolling
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.
- UpdateCount
Keeps track of calls to
BeginUpdate
andEndUpdate
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 theEndUpdate
method is called.
- DisableUpdate()
Prevents object state updating until calling
EnableUpdate
method.
- Dispose()
Release resources of the
Scrolling
object.
- 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 callingBeginUpdate
method.
- ~Scrolling()
Destroys the instance of the
Scrolling
class.
- MouseScroll(int)
Scrolls editor control vertically.
- OnScrollButtonClick(object, EventArgs)
Raises
ScrollButtonClick
event.
- ResetOptions()
Resets the
Options
to the default value.
- 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.
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.