Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IScrollInfo Interface

Represents the main scrollable region inside a ScrollViewer control.

Namespace:  System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

public interface IScrollInfo

The IScrollInfo type exposes the following members.

  NameDescription
Public propertyCanHorizontallyScrollGets or sets a value that indicates whether scrolling on the horizontal axis is possible.
Public propertyCanVerticallyScrollGets or sets a value that indicates whether scrolling on the vertical axis is possible.
Public propertyExtentHeightGets the vertical size of the extent.
Public propertyExtentWidthGets the horizontal size of the extent.
Public propertyHorizontalOffsetGets the horizontal offset of the scrolled content.
Public propertyScrollOwnerGets or sets a ScrollViewer element that controls scrolling behavior.
Public propertyVerticalOffsetGets the vertical offset of the scrolled content.
Public propertyViewportHeightGets the vertical size of the viewport for this content.
Public propertyViewportWidthGets the horizontal size of the viewport for this content.
Top

  NameDescription
Public methodLineDownScrolls down within content by one logical unit.
Public methodLineLeftScrolls left within content by one logical unit.
Public methodLineRightScrolls right within content by one logical unit.
Public methodLineUpScrolls up within content by one logical unit.
Public methodMakeVisibleForces content to scroll until the coordinate space of a Visual object is visible.
Public methodMouseWheelDownScrolls down within content after a user clicks the wheel button on a mouse.
Public methodMouseWheelLeftScrolls left within content after a user clicks the wheel button on a mouse.
Public methodMouseWheelRightScrolls right within content after a user clicks the wheel button on a mouse.
Public methodMouseWheelUpScrolls up within content after a user clicks the wheel button on a mouse.
Public methodPageDownScrolls down within content by one page.
Public methodPageLeftScrolls left within content by one page.
Public methodPageRightScrolls right within content by one page.
Public methodPageUpScrolls up within content by one page.
Public methodSetHorizontalOffsetSets the amount of horizontal offset.
Public methodSetVerticalOffsetSets the amount of vertical offset.
Top

The IScrollInfo interface exposes access to methods that enable logical scrolling of child content as well as computing which child elements are visible. In addition, it defines properties used to define the scrollable region.

Logical scrolling enables scrolling to the next element in the logical tree. Physical scrolling, in contrast, scrolls content by a defined measurable increment in a specified direction. If you require physical scrolling instead of logical scrolling, wrap the host Panel element in a ScrollViewer and set the value of its CanContentScroll property to false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft