Docs / UI

Glossary: StencilStyle

The members of StencilStyle, in alphabetical order.

Color legend plain property dependency property method

The style class of Stencil: the properties a style can set on it. Leaves out SourceTexture and StencilTexture. Framework defaults: none beyond the base ones.

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

KeyColor 🠆

Color · The stencil color, alpha included, where the source shows through. Defaults to transparent black (0, 0, 0, 0).

Tolerance 🠆

float · How far a stencil pixel may be from KeyColor and still be keyed, on a 0 to 1 scale per channel. Defaults to 0 (an exact match).

Methods

StencilStyle()

StencilStyle()

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.