ITextRow::Apply method

Applies the formatting attributes of this text row object to the specified rows in the associated ITextRange2.

Syntax

HRESULT Apply(
  long cRow,
  long Flags
);

Parameters

cRow

Type: long

The number of rows to apply this text row object to.

Flags

Type: long

A flag that controls how the formatting attributes are applied. It can be one of the following values.

Value Meaning
tomCellStructureChangeOnly
Apply formatting attributes only to cell widths or the cell count (enables you to change column widths or insert/delete columns without changing other properties, such as cell borders).
tomRowApplyDefault
Apply formatting attributes to the full application, not just cell widths and count.

Return value

Type: HRESULT

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header tom.h
DLL Msftedit.dll

See also

ITextRow