Aspose::Words::Tables Namespace Reference

Classes

class  Cell
 Represents a table cell. More...
 
class  CellCollection
 Provides typed access to a collection of Aspose::Words::Tables::Cell nodes. More...
 
class  CellFormat
 Represents all formatting for a table cell. More...
 
class  PreferredWidth
 Represents a value and its unit of measure that is used to specify the preferred width of a table or a cell. More...
 
class  Row
 Represents a table row. More...
 
class  RowCollection
 Provides typed access to a collection of Aspose::Words::Tables::Row nodes. More...
 
class  RowFormat
 Represents all formatting for a table row. More...
 
class  Table
 Represents a table in a Word document. More...
 
class  TableCollection
 Provides typed access to a collection of Aspose::Words::Tables::Table nodes. More...
 

Enumerations

enum  AutoFitBehavior { AutoFitBehavior::AutoFitToContents, AutoFitBehavior::AutoFitToWindow, AutoFitBehavior::FixedColumnWidths }
 Determines how Aspose.Words resizes the table when you invoke the Aspose::Words::Tables::Table::AutoFit(Aspose::Words::Tables::AutoFitBehavior) method. More...
 
enum  CellMerge { CellMerge::None = 0, CellMerge::First = 1, CellMerge::Previous = 2 }
 Specifies how a cell in a table is merged with other cells. More...
 
enum  CellVerticalAlignment { CellVerticalAlignment::Top = 0, CellVerticalAlignment::Center = 1, CellVerticalAlignment::Bottom = 2 }
 Specifies vertical justification of text inside a table cell. More...
 
enum  PreferredWidthType { PreferredWidthType::Auto = 1, PreferredWidthType::Percent = 2, PreferredWidthType::Points = 3 }
 Specifies the unit of measurement for the preferred width of a table or cell. More...
 
enum  TableAlignment { TableAlignment::Left = 0, TableAlignment::Center = 1, TableAlignment::Right = 2 }
 Specifies alignment for an inline table. More...
 
enum  TableStyleOptions {
  TableStyleOptions::None = 0x0000, TableStyleOptions::FirstRow = 0x0020, TableStyleOptions::LastRow = 0x0040, TableStyleOptions::FirstColumn = 0x0080,
  TableStyleOptions::LastColumn = 0x0100, TableStyleOptions::RowBands = 0x0200, TableStyleOptions::ColumnBands = 0x0400, TableStyleOptions::Default2003 = static_cast<int32_t>(RowBands | ColumnBands),
  TableStyleOptions::Default = static_cast<int32_t>(FirstRow | FirstColumn | RowBands)
}
 Specifies how table style is applied to a table. More...
 
enum  TextWrapping { TextWrapping::None, TextWrapping::Around, TextWrapping::Default = static_cast<int32_t>(None) }
 Specifies how text is wrapped around the table. More...
 

Enumeration Type Documentation

◆ AutoFitBehavior

Determines how Aspose.Words resizes the table when you invoke the Aspose::Words::Tables::Table::AutoFit(Aspose::Words::Tables::AutoFitBehavior) method.

Enumerator
AutoFitToContents 

Aspose.Words enables the AutoFit option, removes the preferred width from the table and all cells and then updates the table layout.

<para>In the resulting table, cell widths are updated to fit the table contents. Most likely, the table will shrink.</para>
</summary>  
AutoFitToWindow 

When you use this value, Aspose.Words enables the AutoFit option, sets the preferred width for the table to 100%, removes preferred widths from all cells and then updates the table layout.

As a result, the table occupies all available width and the cell widths are updated to fit table contents.

FixedColumnWidths 

Aspose.Words disables the AutoFit option and removes the preferred with from the table.

<para>The widths of the cells remain as they are specified by their <see cref="Aspose::Words::Tables::CellFormat::get_Width" /> properties.</para>
</summary>  

◆ CellMerge

Specifies how a cell in a table is merged with other cells.

Enumerator
None 

The cell is not merged.

First 

The cell is the first cell in a range of merged cells.

Previous 

The cell is merged to the previous cell horizontally or vertically.

◆ CellVerticalAlignment

Specifies vertical justification of text inside a table cell.

Enumerator
Top 

Text is aligned at the top of a cell.

Center 

Text is aligned in the middle of a cell.

Bottom 

Text is aligned at the bottom of the cell.

◆ PreferredWidthType

Specifies the unit of measurement for the preferred width of a table or cell.

See also
Aspose::Words::Tables::PreferredWidth
Enumerator
Auto 

The preferred width is not specified. The actual width of the table or cell is either specified using the explicit width or will be determined automatically by the table layout algorithm when the table is displayed, depending on the table auto fit setting.

Percent 

Measure the current item width using a specified percentage.

Points 

Measure the current item width using a specified number of points (1/72 inch).

◆ TableAlignment

Specifies alignment for an inline table.

Enumerator
Left 

The table is aligned to the left.

Center 

The table is centered.

Right 

The table is aligned to the right.

◆ TableStyleOptions

Specifies how table style is applied to a table.

See also
Aspose::Words::Tables::Table::get_StyleOptions
Enumerator
None 

No table style formatting is applied.

FirstRow 

Apply first row conditional formatting.

LastRow 

Apply last row conditional formatting.

FirstColumn 

Apply 1 first column conditional formatting.

LastColumn 

Apply last column conditional formatting.

RowBands 

Apply row banding conditional formatting.

ColumnBands 

Apply column banding conditional formatting.

Default2003 

Row and column banding is applied. This is Microsoft Word default for old formats such as DOC, WML and RTF.

Default 

This is Microsoft Word defaults.

◆ TextWrapping

Specifies how text is wrapped around the table.

Enumerator
None 

Text and table is displayed in the order of their appearance in the document.

Around 

Text is wrapped around the table occupying available side space.

Default 

Default value.