1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

ApplyStrokeMode

This enum is used by UIStroke.ApplyStrokeMode to determine whether to apply the stroke to the object's border or of the text itself. For a more detailed walkthrough of the UIStroke object, see Applying Strokes.

Items

NameValueDescription
Contextual0The stroke is applied to the parent UI element's text.
Border1The stroke is applied to the parent UI element's border.

Contextual

The stroke is applied to the parent UI element's text.

FieldValue
value0

Border

The stroke is applied to the parent UI element's border.

FieldValue
value1