点击或拖拽改变大小

IScrollInfo 接口

It exposes scrolling properties, methods for logical scrolling, computing which children are visible, and measuring/drawing/offsetting/clipping content.

命名空间:  CPF.Controls
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
public interface IScrollInfo

IScrollInfo 类型公开以下成员。

属性
  名称说明
公共属性CanHorizontallyScroll
This property indicates to the IScrollInfo whether or not it can scroll in the horizontal given dimension.
公共属性CanVerticallyScroll
This property indicates to the IScrollInfo whether or not it can scroll in the vertical given dimension.
公共属性ExtentHeight
ExtentHeight contains the full vertical range of the scrolled content.
公共属性ExtentWidth
ExtentWidth contains the full horizontal range of the scrolled content.
公共属性HorizontalOffset
HorizontalOffset is the horizontal offset into the scrolled content that represents the first unit visible.
公共属性ScrollOwner
ScrollOwner is the container that controls any scrollbars, headers, etc... that are dependant on this IScrollInfo's properties. Implementers of IScrollInfo should call InvalidateScrollInfo() on this object when properties change.
公共属性VerticalOffset
VerticalOffset is the vertical offset into the scrolled content that represents the first unit visible.
公共属性ViewportHeight
ViewportHeight contains the currently visible vertical range of the scrolled content.
公共属性ViewportWidth
ViewportWidth contains the currently visible horizontal range of the scrolled content.
Top
方法
  名称说明
公共方法LineDown
Scroll content by one line to the bottom.
公共方法LineLeft
Scroll content by one line to the left.
公共方法LineRight
Scroll content by one line to the right.
公共方法LineUp
Scroll content by one line to the top.
公共方法MouseWheelDown
Scroll content by one page to the bottom.
公共方法MouseWheelLeft
Scroll content by one page to the left.
公共方法MouseWheelRight
Scroll content by one page to the right.
公共方法MouseWheelUp
Scroll content by one page to the top.
公共方法PageDown
Scroll content by one page to the bottom.
公共方法PageLeft
Scroll content by one page to the left.
公共方法PageRight
Scroll content by one page to the right.
公共方法PageUp
Scroll content by one page to the top.
公共方法SetHorizontalOffset
Set the HorizontalOffset to the passed value. An implementation may coerce this value into a valid range, typically inclusively between 0 and ExtentWidth less ViewportWidth.
公共方法SetVerticalOffset
Set the VerticalOffset to the passed value. An implementation may coerce this value into a valid range, typically inclusively between 0 and ExtentHeight less ViewportHeight.
Top
事件
  名称说明
公共事件ScrollChanged
滚动或者视口变化
Top
参见