C1.Win.C1Report.4 Assembly > C1.Win.C1Preview Namespace > C1PreviewPane Class : AddCurrentViewStateToHistory Method |
The newly created object is then added to the ViewHistory collection. Adding of the new state to history is cancelled if the Document property of the current preview pane is null, or if the specified action should not be saved according to the HistoryOptions.SavedActions value of the current pane's HistoryOptions.
Adding of the new state to history can also be cancelled in the HistoryItemAdding event.
'Declaration Public Function AddCurrentViewStateToHistory( _ ByVal userAction As HistorySavedActionsEnum, _ ByVal historyItemCaption As System.String, _ ByVal force As System.Boolean _ ) As ViewHistoryItem
public ViewHistoryItem AddCurrentViewStateToHistory( HistorySavedActionsEnum userAction, System.string historyItemCaption, System.bool force )