---
title: CMProfileElementExists
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/colorsync_manager/1804967-cmprofileelementexists
---

# CMProfileElementExists

Tests whether the specified profile contains a specific element based on the element’s tag signature.

## Declaration

```occ
CMError CMProfileElementExists (
   CMProfileRef prof,
   OSType tag,
   Boolean *found
);
```

## Parameters

- `prof`: A profile reference of type [doc://com.apple.documentation/documentation/applicationservices/cmprofileref](applicationservices/cmprofileref.md) that specifies the profile to examine.
- `tag`: The tag signature (for example, ‘A2B0’, or constant `cmAToB0Tag`) for the element in question. For a complete list of the tag signatures a profile may contain, including a description of each tag, refer to the International Color Consortium Profile Format Specification. The signatures for profile tags are defined in the `CMICCProfile.h` header file.
- `found`: A pointer to a flag for whether the element was found. On return, the flag has the value `true` if the profile contains the element or `false` if it does not.

## Return Value

A `CMError` value. See [Result Codes](../colorsync_manager.md).

## Overview

You cannot use this function to test whether certain data in the `CM2Header` profile header exists. Instead, you must call the function [CMGetProfileHeader](1804879-cmgetprofileheader.md) to copy the entire profile header and read its contents. 

## See Also

### Accessing Profile Elements

- [CMCountProfileElements](1804963-cmcountprofileelements.md)
- [CMGetProfileElement](1804973-cmgetprofileelement.md)
- [CMSetProfileElement](1804977-cmsetprofileelement.md)
- [CMSetProfileElementSize](1804980-cmsetprofileelementsize.md)
- [CMGetPartialProfileElement](1804984-cmgetpartialprofileelement.md)
- [CMSetPartialProfileElement](1804989-cmsetpartialprofileelement.md)
- [CMGetIndProfileElementInfo](1804996-cmgetindprofileelementinfo.md)
- [CMGetIndProfileElement](1805002-cmgetindprofileelement.md)
- [CMSetProfileElementReference](1805005-cmsetprofileelementreference.md)
- [CMRemoveProfileElement](1805008-cmremoveprofileelement.md)
