InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnpSetTableFill Class Reference

Public Member Functions

 SnpSetTableFill ()
 
virtual ~SnpSetTableFill ()
 
ErrorCode SetFillColour (InterfacePtr< ITableModel > &tableModel, const GridArea &gridAreaTarget, const UID &colorUID)
 
GridArea getGridAreaTarget (const InterfacePtr< ITableModel > &tableModel)
 

Detailed Description

  • Sets fill on a table.

Constructor & Destructor Documentation

SnpSetTableFill::SnpSetTableFill ()
inline

Constructor.

virtual SnpSetTableFill::~SnpSetTableFill ()
inlinevirtual

Destructor.

Member Function Documentation

GridArea SnpSetTableFill::getGridAreaTarget (const InterfacePtr< ITableModel > & tableModel)

Gets a grid area to work on. This particular method just returns the entire table area, but does it iteratively.

Parameters
tableModelThe table model of interest.
Returns
GridArea of the "interesting" area.
ErrorCode SnpSetTableFill::SetFillColour (InterfacePtr< ITableModel > & tableModel,
const GridAreagridAreaTarget,
const UIDcolorUID 
)

Shows how to apply the table-wide attribute for color.

Parameters
tableModelThe table model of interest.
gridAreaTargetThe target grid area.
colorUIDThe UID of the color to fill.
Returns
kSuccess on success, kFailure otherwise.