Editar

Compartilhar via


IScrollInfo Interface

Definition

Represents the main scrollable region inside a ScrollViewer control.

public interface class IScrollInfo
public interface IScrollInfo
type IScrollInfo = interface
Public Interface IScrollInfo
Derived

Remarks

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.

Properties

CanHorizontallyScroll

Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.

CanVerticallyScroll

Gets or sets a value that indicates whether scrolling on the vertical axis is possible.

ExtentHeight

Gets the vertical size of the extent.

ExtentWidth

Gets the horizontal size of the extent.

HorizontalOffset

Gets the horizontal offset of the scrolled content.

ScrollOwner

Gets or sets a ScrollViewer element that controls scrolling behavior.

VerticalOffset

Gets the vertical offset of the scrolled content.

ViewportHeight

Gets the vertical size of the viewport for this content.

ViewportWidth

Gets the horizontal size of the viewport for this content.

Methods

LineDown()

Scrolls down within content by one logical unit.

LineLeft()

Scrolls left within content by one logical unit.

LineRight()

Scrolls right within content by one logical unit.

LineUp()

Scrolls up within content by one logical unit.

MakeVisible(Visual, Rect)

Forces content to scroll until the coordinate space of a Visual object is visible.

MouseWheelDown()

Scrolls down within content after a user clicks the wheel button on a mouse.

MouseWheelLeft()

Scrolls left within content after a user clicks the wheel button on a mouse.

MouseWheelRight()

Scrolls right within content after a user clicks the wheel button on a mouse.

MouseWheelUp()

Scrolls up within content after a user clicks the wheel button on a mouse.

PageDown()

Scrolls down within content by one page.

PageLeft()

Scrolls left within content by one page.

PageRight()

Scrolls right within content by one page.

PageUp()

Scrolls up within content by one page.

SetHorizontalOffset(Double)

Sets the amount of horizontal offset.

SetVerticalOffset(Double)

Sets the amount of vertical offset.

Applies to

See also