Reports for WinForms
AddCurrentViewStateToHistory メソッド

C1.Win.C1Report.4 アセンブリ > C1.Win.C1Preview 名前空間 > C1PreviewPane クラス : AddCurrentViewStateToHistory メソッド
新しい履歴項目に関連付けられるユーザーアクションを定義する HistorySavedActionsEnum 値。
新しい履歴項目のキャプション。
true の場合は、CurrentHistoryEntry に保存されている状態と同じでも、現在の状態を強制的に追加します。
プレビューペインの現在の状態を含む ViewHistoryItem を作成します。
シンタックス
'宣言
 
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
)

パラメータ

userAction
新しい履歴項目に関連付けられるユーザーアクションを定義する HistorySavedActionsEnum 値。
historyItemCaption
新しい履歴項目のキャプション。
force
true の場合は、CurrentHistoryEntry に保存されている状態と同じでも、現在の状態を強制的に追加します。

戻り値の型

新しく作成された ViewHistoryItem オブジェクト。アクションがキャンセルされた場合は null。
参照

C1PreviewPane クラス
C1PreviewPane メンバ