---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/itable
---

# ITable

## Overview

`ITable` is an interface in Aspose.Slides FOSS for Java.
Inherits from: `IGraphicalObject`, `IBulkTextFormattable`.

Represents a table on a slide.

This interface declares 66 methods for ITable objects in Java programs.
Available methods include: `asIBulkTextFormattable`, `asIGraphicalObject`, `asIPresentationComponent`, `getAlternativeText`, `getAlternativeTextTitle`, `getAsISlideComponent`, `getCNvPr`, `getColumns`, `getConnectionSiteCount`, `getCustomData`, `getEffectFormat`, `getFillFormat`, and 54 additional methods.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `alternativeText`, `alternativeTextTitle`, `asISlideComponent`, `cNvPr`, `columns`, `connectionSiteCount`, and 35 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `rows` | `IRowCollection` | Read | Returns the collection of rows. |
| `columns` | `IColumnCollection` | Read | Returns the collection of columns. |
| `tableFormat` | `ITableFormat` | Read | Returns the table formatting. |
| `stylePreset` | `TableStylePreset` | Read/Write | Returns the table style preset. |
| `rightToLeft` | `boolean` | Read/Write | Determines whether the table has right-to-left reading order. |
| `firstRow` | `boolean` | Read/Write | Determines whether the first row has special formatting. |
| `firstCol` | `boolean` | Read/Write | Determines whether the first column has special formatting. |
| `lastRow` | `boolean` | Read/Write | Determines whether the last row has special formatting. |
| `lastCol` | `boolean` | Read/Write | Determines whether the last column has special formatting. |
| `horizontalBanding` | `boolean` | Read/Write | Determines whether the table has horizontal banding. |
| `verticalBanding` | `boolean` | Read/Write | Determines whether the table has vertical banding. |
| `graphicalObjectLock` | `IGraphicalObjectLock` | Read | Returns shape's locks. |
| `textHolder` | `boolean` | Read | Determines whether the shape is a text holder. |
| `placeholder` | `IPlaceholder` | Read | Returns the placeholder for this shape. |
| `customData` | `ICustomData` | Read | Returns the shape's custom data. |
| `rawFrame` | `IShapeFrame` | Read/Write | Returns the raw shape frame's properties. |
| `frame` | `IShapeFrame` | Read/Write | Returns the shape frame's properties. |
| `lineFormat` | `ILineFormat` | Read | Returns the line format for this shape. |
| `threeDFormat` | `IThreeDFormat` | Read | Returns the 3-D format for this shape. |
| `effectFormat` | `IEffectFormat` | Read | Returns the effect format for this shape. |
| `fillFormat` | `IFillFormat` | Read | Returns the fill format for this shape. |
| `hidden` | `boolean` | Read/Write | Determines whether the shape is hidden. |
| `zOrderPosition` | `int` | Read | Returns the position of a shape in the z-order. |
| `connectionSiteCount` | `int` | Read | Returns the number of connection sites on the shape. |
| `rotation` | `double` | Read/Write | Returns the rotation angle of the shape in degrees. |
| `x` | `double` | Read/Write | Gets the x-coordinate of the upper-left corner of the shape, in points. |
| `y` | `double` | Read/Write | Gets the y-coordinate of the upper-left corner of the shape, in points. |
| `width` | `double` | Read/Write | Gets the width of the shape, in points. |
| `height` | `double` | Read/Write | Gets the height of the shape, in points. |
| `alternativeText` | `String` | Read/Write | Returns or sets the alternative text associated with a shape. |
| `alternativeTextTitle` | `String` | Read/Write | Returns or sets the title of alternative text associated with a shape. |
| `name` | `String` | Read/Write | Returns or sets the name of a shape. |
| `decorative` | `boolean` | Read/Write | Gets or sets the 'Mark as decorative' option. |
| `uniqueId` | `int` | Read | Returns an internal, presentation-scoped identifier. |
| `officeInteropShapeId` | `int` | Read | Returns a slide-scoped unique identifier that remains constant for the lifetime of the shape. |
| `grouped` | `boolean` | Read | Determines whether the shape is grouped. |
| `asISlideComponent` | `ISlideComponent` | Read | Allows to get base {@link ISlideComponent} interface. |
| `shapeType` | `ShapeType` | Read | Gets the AutoShape type. |
| `cNvPr` | `Element` | Read | Returns the {@code cNvPr} element for this shape, or {@code null}. |
| `slide` | `IBaseSlide` | Read | Returns the parent slide. |
| `presentation` | `IPresentation` | Read | Returns the presentation containing this component. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getRows()` → `IRowCollection` | Returns the collection of rows. |
| `getColumns()` → `IColumnCollection` | Returns the collection of columns. |
| `getTableFormat()` → `ITableFormat` | Returns the table formatting. |
| `getStylePreset()` → `TableStylePreset` | Returns the table style preset. |
| `setStylePreset(value: TableStylePreset)` | Sets the table style preset. |
| `isRightToLeft()` → `boolean` | Determines whether the table has right-to-left reading order. |
| `setRightToLeft(value: boolean)` | Sets the right-to-left reading order. |
| `isFirstRow()` → `boolean` | Determines whether the first row has special formatting. |
| `setFirstRow(value: boolean)` | Sets whether the first row has special formatting. |
| `isFirstCol()` → `boolean` | Determines whether the first column has special formatting. |
| `setFirstCol(value: boolean)` | Sets whether the first column has special formatting. |
| `isLastRow()` → `boolean` | Determines whether the last row has special formatting. |
| `setLastRow(value: boolean)` | Sets whether the last row has special formatting. |
| `isLastCol()` → `boolean` | Determines whether the last column has special formatting. |
| `setLastCol(value: boolean)` | Sets whether the last column has special formatting. |
| `isHorizontalBanding()` → `boolean` | Determines whether the table has horizontal banding. |
| `setHorizontalBanding(value: boolean)` | Sets whether the table has horizontal banding. |
| `isVerticalBanding()` → `boolean` | Determines whether the table has vertical banding. |
| `setVerticalBanding(value: boolean)` | Sets whether the table has vertical banding. |
| `mergeCells(cell1: ICell, cell2: ICell, allowSplitting: boolean)` → `ICell` | Merges neighbouring cells. |
| `asIGraphicalObject()` → `IGraphicalObject` | Returns this table as an {@link IGraphicalObject}. |
| `asIBulkTextFormattable()` → `IBulkTextFormattable` | Returns this table as an {@link IBulkTextFormattable}. |
| `getGraphicalObjectLock()` → `IGraphicalObjectLock` | Returns shape's locks. |
| `isTextHolder()` → `boolean` | Determines whether the shape is a text holder. |
| `getPlaceholder()` → `IPlaceholder` | Returns the placeholder for this shape. |
| `getCustomData()` → `ICustomData` | Returns the shape's custom data. |
| `getRawFrame()` → `IShapeFrame` | Returns the raw shape frame's properties. |
| `setRawFrame(value: IShapeFrame)` | Sets the raw shape frame's properties. |
| `getFrame()` → `IShapeFrame` | Returns the shape frame's properties. |
| `setFrame(value: IShapeFrame)` | Sets the shape frame's properties. |
| `getLineFormat()` → `ILineFormat` | Returns the line format for this shape. |
| `getThreeDFormat()` → `IThreeDFormat` | Returns the 3-D format for this shape. |
| `getEffectFormat()` → `IEffectFormat` | Returns the effect format for this shape. |
| `getFillFormat()` → `IFillFormat` | Returns the fill format for this shape. |
| `isHidden()` → `boolean` | Determines whether the shape is hidden. |
| `setHidden(value: boolean)` | Sets whether the shape is hidden. |
| `getZOrderPosition()` → `int` | Returns the position of a shape in the z-order. |
| `getConnectionSiteCount()` → `int` | Returns the number of connection sites on the shape. |
| `getRotation()` → `double` | Returns the rotation angle of the shape in degrees. |
| `setRotation(rotation: double)` | Sets the rotation angle of the shape in degrees. |
| `getX()` → `double` | Gets the x-coordinate of the upper-left corner of the shape, in points. |
| `setX(x: double)` | Sets the x-coordinate of the upper-left corner of the shape, in points. |
| `getY()` → `double` | Gets the y-coordinate of the upper-left corner of the shape, in points. |
| `setY(y: double)` | Sets the y-coordinate of the upper-left corner of the shape, in points. |
| `getWidth()` → `double` | Gets the width of the shape, in points. |
| `setWidth(width: double)` | Sets the width of the shape, in points. |
| `getHeight()` → `double` | Gets the height of the shape, in points. |
| `setHeight(height: double)` | Sets the height of the shape, in points. |
| `getAlternativeText()` → `String` | Returns or sets the alternative text associated with a shape. |
| `setAlternativeText(value: String)` | Sets the alternative text associated with a shape. |
| `getAlternativeTextTitle()` → `String` | Returns or sets the title of alternative text associated with a shape. |
| `setAlternativeTextTitle(value: String)` | Sets the title of alternative text associated with a shape. |
| `getName()` → `String` | Returns or sets the name of a shape. |
| `setName(value: String)` | Sets the name of a shape. |
| `isDecorative()` → `boolean` | Gets or sets the 'Mark as decorative' option. |
| `setDecorative(value: boolean)` | Sets the 'Mark as decorative' option. |
| `getUniqueId()` → `int` | Returns an internal, presentation-scoped identifier. |
| `getOfficeInteropShapeId()` → `int` | Returns a slide-scoped unique identifier that remains constant for the lifetime of the shape. |
| `isGrouped()` → `boolean` | Determines whether the shape is grouped. |
| `getAsISlideComponent()` → `ISlideComponent` | Allows to get base {@link ISlideComponent} interface. |
| `getShapeType()` → `ShapeType` | Gets the AutoShape type. |
| `getCNvPr()` → `Element` | Returns the {@code cNvPr} element for this shape, or {@code null}. |
| `getSlide()` → `IBaseSlide` | Returns the parent slide. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns the base {@link IPresentationComponent} interface. |
| `getPresentation()` → `IPresentation` | Returns the presentation containing this component. |
| `setTextFormat(source: Object)` | Sets the text format for all child text elements. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)