Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    IScrollInfo Interface

    Namespace: Stride.UI
    Assembly: 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.

    | Improve this Doc View Source

    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 0 and 1 for each component indicating the position of the scroll bar

    Remarks

    Return 0 for each direction the element cannot scroll


    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
    | Improve this Doc View Source

    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


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation