---
title: "MACaptionAppearanceGetTextEdgeStyle(_:_:)"
framework: mediaaccessibility
role: symbol
role_heading: Function
path: "mediaaccessibility/macaptionappearancegettextedgestyle(_:_:)"
---

# MACaptionAppearanceGetTextEdgeStyle(_:_:)

Returns the preference for text edge style.

## Declaration

```swift
func MACaptionAppearanceGetTextEdgeStyle(_ domain: MACaptionAppearanceDomain, _ behavior: UnsafeMutablePointer<MACaptionAppearanceBehavior>?) -> MACaptionAppearanceTextEdgeStyle
```

## Parameters

- `domain`: The domain to retrieve the preference value from. See doc://com.apple.mediaaccessibility/documentation/MediaAccessibility/MACaptionAppearanceDomain. Pass doc://com.apple.mediaaccessibility/documentation/MediaAccessibility/MACaptionAppearanceDomain/user unless the system defaults are needed for comparison.
- `behavior`: A pointer to memory. On return, this memory holds the caption appearance behavior for this preference setting. For possible values see doc://com.apple.mediaaccessibility/documentation/MediaAccessibility/MACaptionAppearanceBehavior. Pass NULL when you do not need the behavior setting.

## Return Value

Return Value The preferred text edge style, such as Raised or Drop Shadow. See MACaptionAppearanceTextEdgeStyle.

## See Also

### Text settings

- [MACaptionAppearanceCopyFontDescriptorForStyle(_:_:_:)](mediaaccessibility/macaptionappearancecopyfontdescriptorforstyle(_:_:_:).md)
- [MACaptionAppearanceCopyForegroundColor(_:_:)](mediaaccessibility/macaptionappearancecopyforegroundcolor(_:_:).md)
- [MACaptionAppearanceGetForegroundOpacity(_:_:)](mediaaccessibility/macaptionappearancegetforegroundopacity(_:_:).md)
- [MACaptionAppearanceGetRelativeCharacterSize(_:_:)](mediaaccessibility/macaptionappearancegetrelativecharactersize(_:_:).md)
