Show / Hide Table of Contents

Interface IScrollInfo

Represents the main scrollable region inside a ScrollViewer control.

Namespace: System.Windows.Controls.Primitives
Assembly: OpenSilver.dll
Syntax
public interface IScrollInfo

Properties

| Improve this Doc View Source

CanHorizontallyScroll

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

Declaration
bool CanHorizontallyScroll { get; set; }
Property Value
Type Description
System.Boolean

true if scrolling is possible; otherwise false. This property has no default value.

| Improve this Doc View Source

CanVerticallyScroll

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

Declaration
bool CanVerticallyScroll { get; set; }
Property Value
Type Description
System.Boolean

true if scrolling is possible; otherwise false. This property has no default value.

| Improve this Doc View Source

ExtentHeight

Gets the vertical size of the extent.

Declaration
double ExtentHeight { get; }
Property Value
Type Description
System.Double

A System.Double that represents, in device independent pixels, the vertical size of the extent. This property has no default value.

| Improve this Doc View Source

ExtentWidth

Gets the horizontal size of the extent.

Declaration
double ExtentWidth { get; }
Property Value
Type Description
System.Double

A System.Double that represents, in device independent pixels, the horizontal size of the extent. This property has no default value.

| Improve this Doc View Source

HorizontalOffset

Gets the horizontal offset of the scrolled content.

Declaration
double HorizontalOffset { get; }
Property Value
Type Description
System.Double

A System.Double that represents, in device independent pixels, the horizontal offset. Valid values are between zero and the ExtentWidth minus the ViewportWidth. This property has no default value.

| Improve this Doc View Source

ScrollOwner

Gets or sets a ScrollViewer element that controls scrolling behavior.

Declaration
ScrollViewer ScrollOwner { get; set; }
Property Value
Type Description
ScrollViewer

A ScrollViewer element that controls scrolling behavior. This property has no default value.

| Improve this Doc View Source

VerticalOffset

Gets the vertical offset of the scrolled content.

Declaration
double VerticalOffset { get; }
Property Value
Type Description
System.Double

A System.Double that represents, in device independent pixels, the vertical offset of the scrolled content. Valid values are between zero and the ExtentHeight minus the ViewportHeight. This property has no default value.

| Improve this Doc View Source

ViewportHeight

Gets the vertical size of the viewport for this content.

Declaration
double ViewportHeight { get; }
Property Value
Type Description
System.Double

A System.Double that represents, in device independent pixels, the vertical size of the viewport for this content. This property has no default value.

| Improve this Doc View Source

ViewportWidth

Gets the horizontal size of the viewport for this content.

Declaration
double ViewportWidth { get; }
Property Value
Type Description
System.Double

A System.Double that represents, in device independent pixels, the horizontal size of the viewport for this content. This property has no default value.

Methods

| Improve this Doc View Source

LineDown()

Scrolls down within the content by one logical unit.

Declaration
void LineDown()
| Improve this Doc View Source

LineLeft()

Scrolls left within the content by one logical unit.

Declaration
void LineLeft()
| Improve this Doc View Source

LineRight()

Scrolls right within the content by one logical unit.

Declaration
void LineRight()
| Improve this Doc View Source

LineUp()

Scrolls up within the content by one logical unit.

Declaration
void LineUp()
| Improve this Doc View Source

MakeVisible(UIElement, Rect)

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

Declaration
Rect MakeVisible(UIElement visual, Rect rectangle)
Parameters
Type Name Description
UIElement visual

A UIElement that becomes visible.

Rect rectangle

A bounding rectangle that identifies the coordinate space to make visible.

Returns
Type Description
Rect

A Rect that is visible.

| Improve this Doc View Source

MouseWheelDown()

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

Declaration
void MouseWheelDown()
| Improve this Doc View Source

MouseWheelLeft()

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

Declaration
void MouseWheelLeft()
| Improve this Doc View Source

MouseWheelRight()

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

Declaration
void MouseWheelRight()
| Improve this Doc View Source

MouseWheelUp()

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

Declaration
void MouseWheelUp()
| Improve this Doc View Source

PageDown()

Scrolls down within the content by one page.

Declaration
void PageDown()
| Improve this Doc View Source

PageLeft()

Scrolls left within the content by one page.

Declaration
void PageLeft()
| Improve this Doc View Source

PageRight()

Scrolls right within the content by one page.

Declaration
void PageRight()
| Improve this Doc View Source

PageUp()

Scrolls up within the content by one page.

Declaration
void PageUp()
| Improve this Doc View Source

SetHorizontalOffset(Double)

Sets the amount of horizontal offset.

Declaration
void SetHorizontalOffset(double offset)
Parameters
Type Name Description
System.Double offset

The amount that content is horizontally offset from the containing viewport.

| Improve this Doc View Source

SetVerticalOffset(Double)

Sets the amount of vertical offset.

Declaration
void SetVerticalOffset(double offset)
Parameters
Type Name Description
System.Double offset

The amount that content is vertically offset from the containing viewport.

  • Improve this Doc
  • View Source