---
title: representedElementCategory
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscollectionviewlayoutattributes/representedelementcategory
---

# representedElementCategory

The type of the element.

## Declaration

```swift
var representedElementCategory: NSCollectionElementCategory { get }
```

## Discussion

Discussion Use this property to distinguish whether the layout attributes apply to an item, a supplementary view, a decoration view, or another type of element presented by the collection view.

## See Also

### Identifying the Element

- [indexPath](appkit/nscollectionviewlayoutattributes/indexpath.md)
- [representedElementKind](appkit/nscollectionviewlayoutattributes/representedelementkind.md)
- [elementKindInterItemGapIndicator](appkit/nscollectionview/elementkindinteritemgapindicator.md)
- [elementKindSectionFooter](appkit/nscollectionview/elementkindsectionfooter.md)
- [elementKindSectionHeader](appkit/nscollectionview/elementkindsectionheader.md)
