> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/enums/applystrokemode.md).

# ApplyStrokeMode

## Overview

ApplyStrokeMode is an Enum that specifies how UIStroke applies the stroke.

This is used as the ApplyStrokeMode property of UIStroke and determines whether the stroke is displayed along the border of the parent UI element or according to the element's type.

## Items

| Name       | Value | Description                                                                                                                                        |
| ---------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| Contextual | 0     | Displays the stroke according to the type of the parent UI element. For example, on text elements the stroke is displayed around the text outline. |
| Border     | 1     | Displays the stroke along the border of the parent UI element.                                                                                     |

## See also

{% content-ref url="/pages/79OZ3e9UaPepKCPFvkj8" %}
[UIStroke](/development/api-reference/classes/uistroke.md)
{% endcontent-ref %}
