enum ObjectFit : System.Enum

robot_2Generated
code_blocksInput

Description

The ObjectFit enumeration in the Sandbox.UI namespace defines how content should be resized to fit within a UI element's content box. It provides options to control the scaling and aspect ratio of the content.

Members

Static Fields

Member NameSummary
FillThe content is sized to fill the element's content box. This does not preserve aspect ratio.
ContainThe content is scaled to maintain its aspect ratio while fitting within the element's content box.
CoverThe content is sized to maintain its aspect ratio while filling the element's entire content box.
NoneThe content is not resized.