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 Modifier and Type Method Description booleanequals(Object obj)Returns a value indicating whether this instance is equal to a specified object.booleangetAdjustHeaderRowHeight()Gets a value indicating whether the header row height of the table can be adjusted.intgetDateFormat()Gets the date format of the table.intgetIndex()Gets the index of a Table object in the Tables containing object.booleangetLockFirstColumn()Gets a value indicating whether the first column of a table is locked or editable.StringgetName()Gets the name of a Table object.ProjectgetParentProject()Gets the parent of the Table object.intgetRowHeight()Gets the row height in a table, where the row height is the number of lines of text.booleangetShowAddNewColumn()Gets a value indicating whether to show 'Add New Column' interface.booleangetShowInMenu()Gets a value indicating whether project shows the table name in the Tables drop-down list on the View tab of the Ribbon.TableFieldCollectiongetTableFields()Gets a TableFields collection representing the fields in the table.intgetTableType()Gets the table type for the specified table.intgetUid()Gets the unique identifier of a table.inthashCode()Returns a hash code for this Table.voidsetAdjustHeaderRowHeight(boolean value)Sets a value indicating whether the header row height of the table can be adjusted.voidsetDateFormat(int value)Sets the date format of the table.voidsetLockFirstColumn(boolean value)Sets a value indicating whether the first column of a table is locked or editable.voidsetName(String value)Sets the name of a Table object.voidsetRowHeight(int value)Sets the row height in a table, where the row height is the number of lines of text.voidsetShowAddNewColumn(boolean value)Sets a value indicating whether to show 'Add New Column' interface.voidsetShowInMenu(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
Tableclass.
-
-
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
public final Project getParentProject()
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.
-
-