Docs / UI

Glossary: ImageStyle

The members of ImageStyle, in alphabetical order.

Color legend plain property method

The style class of Image: the properties a style can set on it. None. Framework defaults: ForegroundColor white.

A class deriving from BaseStyle. The styles page shows it in context.

Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.

Properties

Fill 🠆

ImageFill · How the texture covers the image. Defaults to Stretch.

Source 🠆

SourceData · The texture drawn. Assign a Texture2D or a content path. A new source lays the image out again.

Methods

ImageStyle()

ImageStyle()

IsSet() 🠆

IsSet(string propertyName) · Whether the property is assigned to this style, so the style applies it. Pass the name with nameof; an unknown name gives false.

Parameter Type Description
propertyName string The name of a property of the style; nameof keeps it right.