Skip to main content

TdxSpreadSheetConditionalFormatting.BeginEditing Method

Initiates recording a set of conditional formatting changes as a single history action in a Spreadsheet or Report Designer control.

Declaration

procedure BeginEditing; override;

Remarks

This procedure works identically to BeginUpdate if the control’s OptionsBehavior.History property is set to False. Otherwise, the BeginEditing procedure call starts recording a set of changes made to a Table View worksheet’s conditional formatting (including adding, removing, or changing one or more conditional formatting rules) as the latest history action. When the last conditional formatting change is done, call the EndEditing procedure to finish recording the action and apply all the pending changes to the worksheet.

If you enclose the code affecting rule conditions, and/or cell area/style settings within the BeginUpdate/EndUpdate procedure blocks instead of BeginEditing/EndEditing when the history functionality is enabled, every change performed is recorded as an individual history action.

As with BeginUpdate/EndUpdate, ensure that every BeginEditing call is followed by an EndEditing call, even if an exception occurs.

See Also