Table of Contents

Enum ObjectFit

Namespace
MudBlazor
Assembly
MudBlazor.dll

Indicates how an object is sized relative to its container.

public enum ObjectFit
Extension Methods

Fields

Contain = 2

The content is scaled to maintain its aspect ratio while filling the container.

Cover = 1

The content is sized to maintain its aspect ratio while filling the container.

Fill = 3

The content is sized to fill the container.

None = 0

The image is cropped to fit within its container.

ScaleDown = 4

The content is sized as if None or Contain were specified, whichever would result in a smaller object size.