---
title: "CFNumberFormatterCopyProperty(_:_:)"
framework: Core Foundation
role: symbol
role_heading: Function
path: "corefoundation/cfnumberformattercopyproperty(_:_:)"
---

# CFNumberFormatterCopyProperty(_:_:)

Returns a copy of a number formatter’s value for a given key.

## Declaration

```swift
func CFNumberFormatterCopyProperty(_ formatter: CFNumberFormatter!, _ key: CFNumberFormatterKey!) -> CFTypeRef!
```

## Parameters

- `formatter`: The number formatter to examine.
- `key`: A property key. See doc://com.apple.corefoundation/documentation/CoreFoundation/number-formatter-property-keys for valid values.

## Return Value

Return Value A CFType object that is a copy of the property value for key. Returns NULL if there is no value specified for key. Ownership follows the The Create Rule.

## See Also

### Examining a Number Formatter

- [CFNumberFormatterGetFormat(_:)](corefoundation/cfnumberformattergetformat(_:).md)
- [CFNumberFormatterGetLocale(_:)](corefoundation/cfnumberformattergetlocale(_:).md)
- [CFNumberFormatterGetStyle(_:)](corefoundation/cfnumberformattergetstyle(_:).md)
