Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    StretchDirection Enum

    Namespace: Stride.UI
    Assembly: Stride.UI.dll

    Describes how scaling applies to content and restricts scaling to named axis types.

    public enum StretchDirection

    Fields

    Name Description
    Both

    The content stretches to fit the parent according to the Stretch mode.

    DownOnly

    The content scales downward only when it is larger than the parent. If the content is smaller, no scaling upward is performed.

    UpOnly

    The content scales upward only when it is smaller than the parent. If the content is larger, no scaling downward is performed.

    Extension Methods

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

    Back to top

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