---
title: "tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nspresentationintent/tableintentwithidentity:columncount:alignments:nestedinsideintent:"
---

# tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:

Creates a table intent with the provided information.

## Declaration

```occ
+ (NSPresentationIntent *) tableIntentWithIdentity:(NSInteger) identity columnCount:(NSInteger) columnCount alignments:(NSArray<NSNumber *> *) alignments nestedInsideIntent:(NSPresentationIntent *) parent;
```

## Parameters

- `identity`: The unique identifier for the intent.
- `columnCount`: The number of columns in the table.
- `alignments`: The text alignments for each column. For each NSNumber in the array, set the value to a value from the doc://com.apple.foundation/documentation/Foundation/NSPresentationIntentTableColumnAlignment enumerated type.
- `parent`: The parent intent of the table.

## Return Value

Return Value A new intent with the kind set to NSPresentationIntentKindTable.

## See Also

### Creating a presentation intent

- [paragraphIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/paragraphintentwithidentity:nestedinsideintent:.md)
- [headerIntentWithIdentity:level:nestedInsideIntent:](foundation/nspresentationintent/headerintentwithidentity:level:nestedinsideintent:.md)
- [orderedListIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/orderedlistintentwithidentity:nestedinsideintent:.md)
- [unorderedListIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/unorderedlistintentwithidentity:nestedinsideintent:.md)
- [listItemIntentWithIdentity:ordinal:nestedInsideIntent:](foundation/nspresentationintent/listitemintentwithidentity:ordinal:nestedinsideintent:.md)
- [codeBlockIntentWithIdentity:languageHint:nestedInsideIntent:](foundation/nspresentationintent/codeblockintentwithidentity:languagehint:nestedinsideintent:.md)
- [blockQuoteIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/blockquoteintentwithidentity:nestedinsideintent:.md)
- [thematicBreakIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/thematicbreakintentwithidentity:nestedinsideintent:.md)
- [tableHeaderRowIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/tableheaderrowintentwithidentity:nestedinsideintent:.md)
- [tableRowIntentWithIdentity:row:nestedInsideIntent:](foundation/nspresentationintent/tablerowintentwithidentity:row:nestedinsideintent:.md)
- [tableCellIntentWithIdentity:column:nestedInsideIntent:](foundation/nspresentationintent/tablecellintentwithidentity:column:nestedinsideintent:.md)
