Class Table
- java.lang.Object
-
- com.aspose.tasks.Table
-
public class Table extends Object
Represents a table in Project
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.boolean
getAdjustHeaderRowHeight()
Gets a value indicating whether the header row height of the table can be adjusted.int
getDateFormat()
Gets the date format of the table.int
getIndex()
Gets the index of a Table object in the Tables containing object.boolean
getLockFirstColumn()
Gets a value indicating whether the first column of a table is locked or editable.String
getName()
Gets the name of a Table object.Project
getParentProject()
Deprecated.This member is obsolete and will be removed after the release 23.3.int
getRowHeight()
Gets the row height in a table, where the row height is the number of lines of text.boolean
getShowAddNewColumn()
Gets a value indicating whether to show 'Add New Column' interface.boolean
getShowInMenu()
Gets a value indicating whether project shows the table name in the Tables drop-down list on the View tab of the Ribbon.TableFieldCollection
getTableFields()
Gets a TableFields collection representing the fields in the table.int
getTableType()
Gets the table type for the specified table.int
getUid()
Gets the unique identifier of a table.int
hashCode()
Returns a hash code for this Table.void
setAdjustHeaderRowHeight(boolean value)
Sets a value indicating whether the header row height of the table can be adjusted.void
setDateFormat(int value)
Sets the date format of the table.void
setLockFirstColumn(boolean value)
Sets a value indicating whether the first column of a table is locked or editable.void
setName(String value)
Sets the name of a Table object.void
setRowHeight(int value)
Sets the row height in a table, where the row height is the number of lines of text.void
setShowAddNewColumn(boolean value)
Sets a value indicating whether to show 'Add New Column' interface.void
setShowInMenu(boolean value)
Sets a value indicating whether project shows the table name in the Tables drop-down list on the View tab of the Ribbon.
-
-
-
Constructor Detail
-
Table
public Table()
Initializes a new instance of the
Table
class.
-
-
Method Detail
-
equals
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
-
getAdjustHeaderRowHeight
public final boolean getAdjustHeaderRowHeight()
Gets a value indicating whether the header row height of the table can be adjusted.
- Returns:
- a value indicating whether the header row height of the table can be adjusted.
-
setAdjustHeaderRowHeight
public final void setAdjustHeaderRowHeight(boolean value)
Sets a value indicating whether the header row height of the table can be adjusted.
- Parameters:
value
- a value indicating whether the header row height of the table can be adjusted.
-
getDateFormat
public final int getDateFormat()
Gets the date format of the table.
- Returns:
- the date format of the table.
-
setDateFormat
public final void setDateFormat(int value)
Sets the date format of the table.
- Parameters:
value
- the date format of the table.
-
getIndex
public final int getIndex()
Gets the index of a Table object in the Tables containing object.
- Returns:
- the index of a Table object in the Tables containing object.
-
getLockFirstColumn
public final boolean getLockFirstColumn()
Gets a value indicating whether the first column of a table is locked or editable.
- Returns:
- a value indicating whether the first column of a table is locked or editable.
-
setLockFirstColumn
public final void setLockFirstColumn(boolean value)
Sets a value indicating whether the first column of a table is locked or editable.
- Parameters:
value
- a value indicating whether the first column of a table is locked or editable.
-
getName
public final String getName()
Gets the name of a Table object.
- Returns:
- the name of a Table object.
-
setName
public final void setName(String value)
Sets the name of a Table object.
- Parameters:
value
- the name of a Table object.
-
getParentProject
@Deprecated public final Project getParentProject()
Deprecated.This member is obsolete and will be removed after the release 23.3.Gets the parent of the Table object. Read-only
Project
.- Returns:
- the parent of the Table object.
-
getRowHeight
public final int getRowHeight()
Gets the row height in a table, where the row height is the number of lines of text.
- Returns:
- the row height in a table, where the row height is the number of lines of text.
-
setRowHeight
public final void setRowHeight(int value)
Sets the row height in a table, where the row height is the number of lines of text.
- Parameters:
value
- the row height in a table, where the row height is the number of lines of text.
-
getShowAddNewColumn
public final boolean getShowAddNewColumn()
Gets a value indicating whether to show 'Add New Column' interface.
Supported by MSP 2010 version and later.- Returns:
- a value indicating whether to show 'Add New Column' interface.
-
setShowAddNewColumn
public final void setShowAddNewColumn(boolean value)
Sets a value indicating whether to show 'Add New Column' interface.
Supported by MSP 2010 version and later.- Parameters:
value
- a value indicating whether to show 'Add New Column' interface.
-
getShowInMenu
public final boolean getShowInMenu()
Gets a value indicating whether project shows the table name in the Tables drop-down list on the View tab of the Ribbon.
- Returns:
- a value indicating whether project shows the table name in the Tables drop-down list on the View tab of the Ribbon.
-
setShowInMenu
public final void setShowInMenu(boolean value)
Sets a value indicating whether project shows the table name in the Tables drop-down list on the View tab of the Ribbon.
- Parameters:
value
- a value indicating whether project shows the table name in the Tables drop-down list on the View tab of the Ribbon.
-
getTableFields
public final TableFieldCollection getTableFields()
Gets a TableFields collection representing the fields in the table.
- Returns:
- a TableFields collection representing the fields in the table.
-
getTableType
public final int getTableType()
Gets the table type for the specified table. Read-only
ItemType
.- Returns:
- the table type for the specified table.
-
getUid
public final int getUid()
Gets the unique identifier of a table.
- Returns:
- the unique identifier of a table.
-
-