IScrollInfo Interface
Namespace: Stride.UIAssembly: Stride.UI.dll
Represents the main scrollable region inside a ScrollViewer control.
public interface IScrollInfo
Name | Description | |
---|---|---|
Properties | ||
Extent | Gets the size of the extent. That is the virtual total size of the UIElement. |
|
Offset | Gets the offset of the scrolled content. |
|
ScrollBarPositions | Get the position of the horizontal, vertical and in depth scroll bars. |
|
ScrollOwner | Gets or sets a ScrollViewer element that controls scrolling behavior. |
|
Viewport | Gets the size of the viewport for this content. |
|
Methods | ||
CanScroll(Orientation) | Gets a value that indicates if the UIElement can scroll in the provided direction. |
|
ScrollOf(Vector3) | Increase the amount of offset from the current scrolling position. |
|
ScrollToBeginning(Orientation) | Go to the beginning of the element in the given the direction. |
|
ScrollToEnd(Orientation) | Go to the end of the element in the given the direction. |
|
ScrollToNextLine(Orientation) | Go to the next line in the given the direction. |
|
ScrollToNextPage(Orientation) | Go to the next page in the given the direction. |
|
ScrollToPreviousLine(Orientation) | Go to the previous line in the given the direction. |
|
ScrollToPreviousPage(Orientation) | Go to the previous page in the given the direction. |
Properties
Extent
Gets the size of the extent. That is the virtual total size of the UIElement.
Vector3 Extent { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Offset
Gets the offset of the scrolled content.
Vector3 Offset { get; }
Property Value
Type | Description |
---|---|
Vector3 |
ScrollBarPositions
Get the position of the horizontal, vertical and in depth scroll bars.
Vector3 ScrollBarPositions { get; }
Property Value
Type | Description |
---|---|
Vector3 | A value between |
Remarks
Return
ScrollOwner
Gets or sets a ScrollViewer element that controls scrolling behavior.
ScrollViewer ScrollOwner { get; set; }
Property Value
Type | Description |
---|---|
ScrollViewer |
Viewport
Gets the size of the viewport for this content.
Vector3 Viewport { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
CanScroll(Orientation)
Gets a value that indicates if the UIElement can scroll in the provided direction.
bool CanScroll(Orientation direction)
Parameters
Type | Name | Description |
---|---|---|
Orientation | direction | The direction in which perform the scrolling |
Returns
Type | Description |
---|---|
System.Boolean |
ScrollOf(Vector3)
Increase the amount of offset from the current scrolling position.
void ScrollOf(Vector3 offsets)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | offsets |
ScrollToBeginning(Orientation)
Go to the beginning of the element in the given the direction.
void ScrollToBeginning(Orientation direction)
Parameters
Type | Name | Description |
---|---|---|
Orientation | direction | The direction in which to scroll |
ScrollToEnd(Orientation)
Go to the end of the element in the given the direction.
void ScrollToEnd(Orientation direction)
Parameters
Type | Name | Description |
---|---|---|
Orientation | direction | The direction in which to scroll |
ScrollToNextLine(Orientation)
Go to the next line in the given the direction.
void ScrollToNextLine(Orientation direction)
Parameters
Type | Name | Description |
---|---|---|
Orientation | direction | The direction in which to scroll |
ScrollToNextPage(Orientation)
Go to the next page in the given the direction.
void ScrollToNextPage(Orientation direction)
Parameters
Type | Name | Description |
---|---|---|
Orientation | direction | The direction in which to scroll |
ScrollToPreviousLine(Orientation)
Go to the previous line in the given the direction.
void ScrollToPreviousLine(Orientation direction)
Parameters
Type | Name | Description |
---|---|---|
Orientation | direction | The direction in which to scroll |
ScrollToPreviousPage(Orientation)
Go to the previous page in the given the direction.
void ScrollToPreviousPage(Orientation direction)
Parameters
Type | Name | Description |
---|---|---|
Orientation | direction | The direction in which to scroll |