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

Public Member Functions

ErrorCode CreateTableStyleFromSelection (ISnpRunnableContext *runnableContext, const InterfacePtr< ITableStyleSuite >tableStyleSuite)
 
ErrorCode ModifyTableStyle (ISnpRunnableContext *runnableContext)
 
ErrorCode ApplyTableStyleToSelection (ISnpRunnableContext *runnableContext, ITableStyleSuite *tableStyleSuite)
 
ErrorCode DeleteTableStyle (ISnpRunnableContext *iSnpRunnableContext)
 
ErrorCode CreateCellStyleFromSelection (ISnpRunnableContext *runnableContext, const InterfacePtr< ICellStyleSuite >cellStyleSuite)
 
ErrorCode ModifyCellStyle (ISnpRunnableContext *runnableContext)
 
ErrorCode ApplyCellStyleToSelection (ISnpRunnableContext *runnableContext, ICellStyleSuite *cellStyleSuite)
 
ErrorCode DeleteCellStyle (ISnpRunnableContext *iSnpRunnableContext)
 
ErrorCode SetRegionalStyle (ISnpRunnableContext *iSnpRunnableContext)
 
ErrorCode GetRegionalStyle (ISnpRunnableContext *iSnpRunnableContext)
 

Detailed Description

Sample code snippet that shows how to Create, delete, apply, and modify a cell and table styles Get/Set Regional cell styles in Tables Style

Member Function Documentation

ErrorCode SnpManipulateTableAndCellStyle::ApplyCellStyleToSelection (ISnpRunnableContextrunnableContext,
ICellStyleSuitecellStyleSuite 
)

Apply selected cell style to current selection.

Parameters
runnableContextIN our active context
cellStyleSuiteIN cell style selection suite.
Returns
kSuccess on success, other ErrorCode on failure.
ErrorCode SnpManipulateTableAndCellStyle::ApplyTableStyleToSelection (ISnpRunnableContextrunnableContext,
ITableStyleSuitetableStyleSuite 
)

Apply selected table style to current selection.

Parameters
runnableContextIN our active context
tableStyleSuiteIN table style selection suite.
Returns
kSuccess on success, other ErrorCode on failure.
ErrorCode SnpManipulateTableAndCellStyle::CreateCellStyleFromSelection (ISnpRunnableContextrunnableContext,
const InterfacePtr< ICellStyleSuitecellStyleSuite 
)

Creates a new cell style based on the current selection.

Parameters
runnableContextIN our active context
cellStyleSuiteIN cell style selection suite.
Returns
kSuccess is the style is successfully created, kFailure otherwise.
ErrorCode SnpManipulateTableAndCellStyle::CreateTableStyleFromSelection (ISnpRunnableContextrunnableContext,
const InterfacePtr< ITableStyleSuitetableStyleSuite 
)

Creates a new table style based on the current selection.

Parameters
runnableContextIN our active context
tableStyleSuiteIN table style selection suite.
Returns
kSuccess is the style is successfully created, kFailure otherwise.
ErrorCode SnpManipulateTableAndCellStyle::DeleteCellStyle (ISnpRunnableContextiSnpRunnableContext)

Delete a style.

Parameters
iSnpRunnableContextIN our active context
Returns
kSuccess on success, other ErrorCode on failure.
ErrorCode SnpManipulateTableAndCellStyle::DeleteTableStyle (ISnpRunnableContextiSnpRunnableContext)

Delete a style.

Parameters
iSnpRunnableContextIN our active context
Returns
kSuccess on success, other ErrorCode on failure.
ErrorCode SnpManipulateTableAndCellStyle::GetRegionalStyle (ISnpRunnableContextiSnpRunnableContext)

Get regional cell style.

Parameters
iSnpRunnableContextIN our active context
Returns
kSuccess on success, other ErrorCode on failure.
ErrorCode SnpManipulateTableAndCellStyle::ModifyCellStyle (ISnpRunnableContextrunnableContext)

Modify cell style based on the selection.

Parameters
runnableContextIN our active context
Returns
kSuccess on success, other ErrorCode on failure.
ErrorCode SnpManipulateTableAndCellStyle::ModifyTableStyle (ISnpRunnableContextrunnableContext)

Modify table style based on the selection.

Parameters
runnableContextIN our active context
Returns
kSuccess on success, other ErrorCode on failure.
ErrorCode SnpManipulateTableAndCellStyle::SetRegionalStyle (ISnpRunnableContextiSnpRunnableContext)

Set regional cell style.

Parameters
iSnpRunnableContextIN our active context
Returns
kSuccess on success, other ErrorCode on failure.