• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.Windows.App
    • AppQuery
  • Dapplo.Windows.Citrix
    • WinFrame
  • Dapplo.Windows.Citrix.Enums
    • ConnectStates
    • EventMask
    • InfoClasses
  • Dapplo.Windows.Citrix.Structs
    • ClientAddress
    • ClientDisplay
  • Dapplo.Windows.Clipboard
    • ClipboardMonitor
    • ClipboardNative
    • ClipboardUpdateInformation
    • StandardClipboardFormats
  • Dapplo.Windows.Com
    • ComProgIdAttribute
    • ComWrapper
    • DisposableCom
    • IDispatch
    • IDisposableCom<T>
    • IOleCommandTarget
    • IOleWindow
    • IUnknown
  • Dapplo.Windows.Common
    • Win32
    • WindowsVersion
  • Dapplo.Windows.Common.Enums
    • AdjacentTo
    • HResult
    • Win32Error
  • Dapplo.Windows.Common.Extensions
    • HResultExtensions
    • RectExensions
  • Dapplo.Windows.Common.Structs
    • POINT
    • RECT
    • RECTF
    • SIZE
  • Dapplo.Windows.Desktop
    • EnvironmentChangedEventArgs
    • EnvironmentMonitor
    • IInteropWindow
    • InteropWindow
    • InteropWindowExtensions
    • InteropWindowFactory
    • InteropWindowQuery
    • WindowScroller
    • WindowsEnumerator
    • WinEventHook
  • Dapplo.Windows.DesktopWindowsManager
    • Dwm
    • DwmBlurBehind
    • DwmBlurBehindFlags
    • DwmSetIconicLivePreviewFlags
    • DwmThumbnailProperties
    • DwmThumbnailPropertyFlags
    • DwmWindowAttributes
  • Dapplo.Windows.Dpi
    • BitmapScaleHandler
    • BitmapScaleHandler<TKey>
    • DpiAwareness
    • DpiAwarenessContext
    • DpiHandler
    • WinProcListener
  • Dapplo.Windows.Dpi.Enums
    • MonitorDpiType
  • Dapplo.Windows.Dpi.Forms
    • DpiAwareForm
    • FormsExtensions
  • Dapplo.Windows.Dpi.Wpf
    • WindowExtensions
  • Dapplo.Windows.Enums
    • InteropWindowCacheFlags
    • WinEventHookFlags
    • WinEvents
  • Dapplo.Windows.Gdi32
    • Gdi32Api
    • GdiExtensions
    • GdiPlusApi
  • Dapplo.Windows.Gdi32.Enums
    • BitmapCompressionMethods
    • ColorSpaceEnum
    • DeviceCaps
    • GdiPlusStatus
    • GpUnit
    • RasterOperations
  • Dapplo.Windows.Gdi32.SafeHandles
    • SafeCompatibleDcHandle
    • SafeDcHandle
    • SafeDeviceContextHandle
    • SafeDibSectionHandle
    • SafeHBitmapHandle
    • SafeObjectHandle
    • SafeRegionHandle
    • SafeSelectObjectHandle
    • SafeWindowDcHandle
  • Dapplo.Windows.Gdi32.Structs
    • BitfieldColorMask
    • BitmapFileHeader
    • BitmapInfoHeader
    • BlurParams
    • CieXyz
    • CieXyzTripple
  • Dapplo.Windows.Input
    • Hotkey
    • InputGenerator
    • KeyboardHook
    • KeyboardHookEventArgs
    • MouseHook
    • MouseHookEventArgs
  • Dapplo.Windows.Input.Enums
    • ExtendedKeyFlags
    • ExtendedMouseFlags
    • HookTypes
    • InputTypes
    • KeyEventFlags
    • MouseEventFlags
    • ScanCodes
    • VirtualKeyCodes
  • Dapplo.Windows.Input.Structs
    • HardwareInput
    • Input
    • InputUnion
    • KeyboardInput
    • KeyboardLowLevelHookStruct
    • MouseInput
    • MouseLowLevelHookStruct
  • Dapplo.Windows.Interop
    • DisposableCom
    • IDisposableCom<T>
  • Dapplo.Windows.Kernel32
    • Kernel32Api
    • PsApi
  • Dapplo.Windows.Kernel32.Enums
    • GlobalMemorySettings
    • ProcessAccessRights
    • ThreadAccess
    • WindowsProducts
    • WindowsProductTypes
    • WindowsSuites
  • Dapplo.Windows.Kernel32.Structs
    • OsVersionInfoEx
  • Dapplo.Windows.Messages
    • WindowsMessage
    • WindowsMessages
    • WinProcHandler
  • Dapplo.Windows.Multimedia
    • SoundSettings
    • SystemSounds
    • WinMm
  • Dapplo.Windows.Native
    • Shell32
    • Shell32.FolderType
    • Shell32.IconSize
  • Dapplo.Windows.Shell32
    • Shell32Api
  • Dapplo.Windows.Shell32.Enums
    • AppBarEdges
    • AppBarMessages
    • AppBarStates
  • Dapplo.Windows.Shell32.Structs
    • AppBarData
  • Dapplo.Windows.Structs
    • WinEventInfo
  • Dapplo.Windows.User32
    • User32Api
    • User32Api.EnumWindowsProc
  • Dapplo.Windows.User32.Enums
    • ClassLongIndex
    • CursorInfoFlags
    • DesktopAccessRight
    • ExtendedWindowStyleFlags
    • GetWindowCommands
    • MonitorFrom
    • MonitorInfoFlags
    • ObjectIdentifiers
    • ObjectStates
    • PrintWindowFlags
    • RegionResults
    • ScrollBarCommands
    • ScrollBarStateIndexes
    • ScrollBarTypes
    • ScrollInfoMask
    • ScrollModes
    • SendMessageTimeoutFlags
    • ShowWindowCommands
    • SysCommands
    • SystemMetric
    • SystemParametersInfoActions
    • SystemParametersInfoBehaviors
    • TitleBarInfoIndexes
    • WindowLongIndex
    • WindowPlacementFlags
    • WindowPos
    • WindowStyleFlags
  • Dapplo.Windows.User32.SafeHandles
    • SafeCurrentInputDesktopHandle
    • SafeIconHandle
  • Dapplo.Windows.User32.Structs
    • AnimationInfo
    • CursorInfo
    • DisplayInfo
    • IconInfo
    • MonitorInfoEx
    • ScrollBarInfo
    • ScrollInfo
    • TitleBarInfoEx
    • WindowInfo
    • WindowPlacement

Class WindowScroller

The is a container class to help to scroll a window

Inheritance
System.Object
WindowScroller
Namespace: Dapplo.Windows.Desktop
Assembly: Dapplo.Windows.dll
Syntax
public class WindowScroller : object

Properties

| Improve this Doc View Source

InitialScrollInfo

This is used to be able to reset the location, and also detect if we are at the end. Some windows might add content when the user is (almost) at the end.

Declaration
public ScrollInfo InitialScrollInfo { get; }
Property Value
Type Description
ScrollInfo
| Improve this Doc View Source

IsAtEnd

Returns true if the scroller is at the end

Declaration
public bool IsAtEnd { get; }
Property Value
Type Description
System.Boolean

bool

| Improve this Doc View Source

IsAtStart

Returns true if the scroller is at the start

Declaration
public bool IsAtStart { get; }
Property Value
Type Description
System.Boolean

bool

| Improve this Doc View Source

KeepInitialBounds

Some windows might add content when the user is (almost) at the end. If this is true, the scrolling doesn't go beyond the intial bounds. If this is false, the initial value is only used for reset.

Declaration
public bool KeepInitialBounds { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ScrollBar

Get the information on the used scrollbar, if any. This can be used to detect the location of the scrollbar

Declaration
public ScrollBarInfo? ScrollBar { get; }
Property Value
Type Description
System.Nullable<ScrollBarInfo>
| Improve this Doc View Source

ScrollBarType

What scrollbar to use

Declaration
public ScrollBarTypes ScrollBarType { get; }
Property Value
Type Description
ScrollBarTypes
| Improve this Doc View Source

ScrollBarWindow

Area of the scrollbar, this can be the WindowToScroll

Declaration
public IInteropWindow ScrollBarWindow { get; set; }
Property Value
Type Description
IInteropWindow
| Improve this Doc View Source

ScrollingWindow

Area which is scrolling, can be the WindowToScroll

Declaration
public IInteropWindow ScrollingWindow { get; set; }
Property Value
Type Description
IInteropWindow
| Improve this Doc View Source

ScrollMode

Specify which scroll mode needs to be used

Declaration
public ScrollModes ScrollMode { get; set; }
Property Value
Type Description
ScrollModes
| Improve this Doc View Source

ScrollWheelLinesFromRegistry

Get the scroll-lines from the registry

Declaration
public static int ScrollWheelLinesFromRegistry { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ShowChanges

Does the scrollbar need to represent the changes?

Declaration
public bool ShowChanges { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

WheelDelta

Amount of delta the scrollwheel scrolls

Declaration
public int WheelDelta { get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

End()

Move to the end

Declaration
public bool End()
Returns
Type Description
System.Boolean

bool if this worked

| Improve this Doc View Source

GetPosition(out ScrollInfo)

Get current position

Declaration
public bool GetPosition(out ScrollInfo scrollInfo)
Parameters
Type Name Description
ScrollInfo scrollInfo
Returns
Type Description
System.Boolean

SCROLLINFO

| Improve this Doc View Source

GetScrollbarInfo(Boolean)

Method to set the ScrollbarInfo, if we can get it

Declaration
public ScrollBarInfo? GetScrollbarInfo(bool forceUpdate = false)
Parameters
Type Name Description
System.Boolean forceUpdate

set to true to force an update, default is false

Returns
Type Description
System.Nullable<ScrollBarInfo>

ScrollBarInfo?

| Improve this Doc View Source

NeedsFocus()

Returns true if the window needs focus to scroll

Declaration
public bool NeedsFocus()
Returns
Type Description
System.Boolean

true if focus is needed

| Improve this Doc View Source

Next()

Go to the next "page"

Declaration
public bool Next()
Returns
Type Description
System.Boolean

bool if this worked

| Improve this Doc View Source

Previous()

Go to the previous "page"

Declaration
public bool Previous()
Returns
Type Description
System.Boolean

bool if this worked

| Improve this Doc View Source

Reset()

Set the position back to the original, only works for windows which support ScrollModes.WindowsMessage

Declaration
public bool Reset()
Returns
Type Description
System.Boolean

true if this worked

| Improve this Doc View Source

Start()

Move to the start

Declaration
public bool Start()
Returns
Type Description
System.Boolean

bool if this worked

  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo