[{"data":1,"prerenderedAt":773},["ShallowReactive",2],{"content-query-kc6LsS1Wsy":3,"navigation":427},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"body":11,"_type":420,"_id":421,"_source":422,"_file":423,"_stem":424,"_extension":425,"sitemap":426},"/document/actions","document",false,"","アクション","ReoGridのアクションフレームワーク — 元に戻す/やり直し、カスタムアクション、アクションの合成。","2025-12-21",{"type":12,"children":13,"toc":416},"root",[14,31,37,377,382,410],{"type":15,"tag":16,"props":17,"children":18},"element","p",{},[19,22,29],{"type":20,"value":21},"text","ReoGridは軽量なアクションフレームワーク（",{"type":15,"tag":23,"props":24,"children":26},"code",{"className":25},[],[27],{"type":20,"value":28},"unvell.Common.ActionManager",{"type":20,"value":30},"に基づく）を使用して、すべての操作を記録し、元に戻す/やり直しをサポートしています。ユーザーのすべての編集はアクションとしてキャプチャされ、カスタムアクションを作成してこのシステムを拡張できます。",{"type":15,"tag":32,"props":33,"children":35},"h2",{"id":34},"クイックリファレンス",[36],{"type":20,"value":34},{"type":15,"tag":38,"props":39,"children":43},"pre",{"className":40,"code":41,"language":42,"meta":7,"style":7},"language-cs shiki shiki-themes github-light github-dark github-light","// Perform an action (supports undo/redo)\ngrid.DoAction(new SetCellDataAction(\"A1\", 100));\n\n// Undo / Redo\ngrid.Undo();\ngrid.Redo();\n\n// Check undo/redo availability\nbool canUndo = grid.CanUndo();\nbool canRedo = grid.CanRedo();\n\n// Listen for actions\ngrid.ActionPerformed += (s, e) =>\n    Console.WriteLine($\"Action: {e.Action.GetType().Name}\");\n","cs",[44],{"type":15,"tag":23,"props":45,"children":46},{"__ignoreMap":7},[47,59,117,127,136,154,171,179,188,221,251,259,268,311],{"type":15,"tag":48,"props":49,"children":52},"span",{"class":50,"line":51},"line",1,[53],{"type":15,"tag":48,"props":54,"children":56},{"style":55},"--shiki-light:#6A737D;--shiki-dark:#6A737D;--shiki-default:#6A737D",[57],{"type":20,"value":58},"// Perform an action (supports undo/redo)\n",{"type":15,"tag":48,"props":60,"children":62},{"class":50,"line":61},2,[63,69,75,80,86,91,95,101,106,112],{"type":15,"tag":48,"props":64,"children":66},{"style":65},"--shiki-light:#24292E;--shiki-dark:#E1E4E8;--shiki-default:#24292E",[67],{"type":20,"value":68},"grid.",{"type":15,"tag":48,"props":70,"children":72},{"style":71},"--shiki-light:#6F42C1;--shiki-dark:#B392F0;--shiki-default:#6F42C1",[73],{"type":20,"value":74},"DoAction",{"type":15,"tag":48,"props":76,"children":77},{"style":65},[78],{"type":20,"value":79},"(",{"type":15,"tag":48,"props":81,"children":83},{"style":82},"--shiki-light:#D73A49;--shiki-dark:#F97583;--shiki-default:#D73A49",[84],{"type":20,"value":85},"new",{"type":15,"tag":48,"props":87,"children":88},{"style":71},[89],{"type":20,"value":90}," SetCellDataAction",{"type":15,"tag":48,"props":92,"children":93},{"style":65},[94],{"type":20,"value":79},{"type":15,"tag":48,"props":96,"children":98},{"style":97},"--shiki-light:#032F62;--shiki-dark:#9ECBFF;--shiki-default:#032F62",[99],{"type":20,"value":100},"\"A1\"",{"type":15,"tag":48,"props":102,"children":103},{"style":65},[104],{"type":20,"value":105},", ",{"type":15,"tag":48,"props":107,"children":109},{"style":108},"--shiki-light:#005CC5;--shiki-dark:#79B8FF;--shiki-default:#005CC5",[110],{"type":20,"value":111},"100",{"type":15,"tag":48,"props":113,"children":114},{"style":65},[115],{"type":20,"value":116},"));\n",{"type":15,"tag":48,"props":118,"children":120},{"class":50,"line":119},3,[121],{"type":15,"tag":48,"props":122,"children":124},{"emptyLinePlaceholder":123},true,[125],{"type":20,"value":126},"\n",{"type":15,"tag":48,"props":128,"children":130},{"class":50,"line":129},4,[131],{"type":15,"tag":48,"props":132,"children":133},{"style":55},[134],{"type":20,"value":135},"// Undo / Redo\n",{"type":15,"tag":48,"props":137,"children":139},{"class":50,"line":138},5,[140,144,149],{"type":15,"tag":48,"props":141,"children":142},{"style":65},[143],{"type":20,"value":68},{"type":15,"tag":48,"props":145,"children":146},{"style":71},[147],{"type":20,"value":148},"Undo",{"type":15,"tag":48,"props":150,"children":151},{"style":65},[152],{"type":20,"value":153},"();\n",{"type":15,"tag":48,"props":155,"children":157},{"class":50,"line":156},6,[158,162,167],{"type":15,"tag":48,"props":159,"children":160},{"style":65},[161],{"type":20,"value":68},{"type":15,"tag":48,"props":163,"children":164},{"style":71},[165],{"type":20,"value":166},"Redo",{"type":15,"tag":48,"props":168,"children":169},{"style":65},[170],{"type":20,"value":153},{"type":15,"tag":48,"props":172,"children":174},{"class":50,"line":173},7,[175],{"type":15,"tag":48,"props":176,"children":177},{"emptyLinePlaceholder":123},[178],{"type":20,"value":126},{"type":15,"tag":48,"props":180,"children":182},{"class":50,"line":181},8,[183],{"type":15,"tag":48,"props":184,"children":185},{"style":55},[186],{"type":20,"value":187},"// Check undo/redo availability\n",{"type":15,"tag":48,"props":189,"children":191},{"class":50,"line":190},9,[192,197,202,207,212,217],{"type":15,"tag":48,"props":193,"children":194},{"style":82},[195],{"type":20,"value":196},"bool",{"type":15,"tag":48,"props":198,"children":199},{"style":71},[200],{"type":20,"value":201}," canUndo",{"type":15,"tag":48,"props":203,"children":204},{"style":82},[205],{"type":20,"value":206}," =",{"type":15,"tag":48,"props":208,"children":209},{"style":65},[210],{"type":20,"value":211}," grid.",{"type":15,"tag":48,"props":213,"children":214},{"style":71},[215],{"type":20,"value":216},"CanUndo",{"type":15,"tag":48,"props":218,"children":219},{"style":65},[220],{"type":20,"value":153},{"type":15,"tag":48,"props":222,"children":224},{"class":50,"line":223},10,[225,229,234,238,242,247],{"type":15,"tag":48,"props":226,"children":227},{"style":82},[228],{"type":20,"value":196},{"type":15,"tag":48,"props":230,"children":231},{"style":71},[232],{"type":20,"value":233}," canRedo",{"type":15,"tag":48,"props":235,"children":236},{"style":82},[237],{"type":20,"value":206},{"type":15,"tag":48,"props":239,"children":240},{"style":65},[241],{"type":20,"value":211},{"type":15,"tag":48,"props":243,"children":244},{"style":71},[245],{"type":20,"value":246},"CanRedo",{"type":15,"tag":48,"props":248,"children":249},{"style":65},[250],{"type":20,"value":153},{"type":15,"tag":48,"props":252,"children":254},{"class":50,"line":253},11,[255],{"type":15,"tag":48,"props":256,"children":257},{"emptyLinePlaceholder":123},[258],{"type":20,"value":126},{"type":15,"tag":48,"props":260,"children":262},{"class":50,"line":261},12,[263],{"type":15,"tag":48,"props":264,"children":265},{"style":55},[266],{"type":20,"value":267},"// Listen for actions\n",{"type":15,"tag":48,"props":269,"children":271},{"class":50,"line":270},13,[272,277,282,287,292,296,301,306],{"type":15,"tag":48,"props":273,"children":274},{"style":65},[275],{"type":20,"value":276},"grid.ActionPerformed ",{"type":15,"tag":48,"props":278,"children":279},{"style":82},[280],{"type":20,"value":281},"+=",{"type":15,"tag":48,"props":283,"children":284},{"style":65},[285],{"type":20,"value":286}," (",{"type":15,"tag":48,"props":288,"children":289},{"style":71},[290],{"type":20,"value":291},"s",{"type":15,"tag":48,"props":293,"children":294},{"style":65},[295],{"type":20,"value":105},{"type":15,"tag":48,"props":297,"children":298},{"style":71},[299],{"type":20,"value":300},"e",{"type":15,"tag":48,"props":302,"children":303},{"style":65},[304],{"type":20,"value":305},") ",{"type":15,"tag":48,"props":307,"children":308},{"style":82},[309],{"type":20,"value":310},"=>\n",{"type":15,"tag":48,"props":312,"children":314},{"class":50,"line":313},14,[315,320,325,329,334,338,343,348,352,357,362,367,372],{"type":15,"tag":48,"props":316,"children":317},{"style":65},[318],{"type":20,"value":319},"    Console.",{"type":15,"tag":48,"props":321,"children":322},{"style":71},[323],{"type":20,"value":324},"WriteLine",{"type":15,"tag":48,"props":326,"children":327},{"style":65},[328],{"type":20,"value":79},{"type":15,"tag":48,"props":330,"children":331},{"style":97},[332],{"type":20,"value":333},"$\"Action: {",{"type":15,"tag":48,"props":335,"children":336},{"style":65},[337],{"type":20,"value":300},{"type":15,"tag":48,"props":339,"children":340},{"style":97},[341],{"type":20,"value":342},".",{"type":15,"tag":48,"props":344,"children":345},{"style":65},[346],{"type":20,"value":347},"Action",{"type":15,"tag":48,"props":349,"children":350},{"style":97},[351],{"type":20,"value":342},{"type":15,"tag":48,"props":353,"children":354},{"style":71},[355],{"type":20,"value":356},"GetType",{"type":15,"tag":48,"props":358,"children":359},{"style":97},[360],{"type":20,"value":361},"().",{"type":15,"tag":48,"props":363,"children":364},{"style":65},[365],{"type":20,"value":366},"Name",{"type":15,"tag":48,"props":368,"children":369},{"style":97},[370],{"type":20,"value":371},"}\"",{"type":15,"tag":48,"props":373,"children":374},{"style":65},[375],{"type":20,"value":376},");\n",{"type":15,"tag":32,"props":378,"children":380},{"id":379},"このセクションの内容",[381],{"type":20,"value":379},{"type":15,"tag":383,"props":384,"children":385},"ul",{},[386,399],{"type":15,"tag":387,"props":388,"children":389},"li",{},[390,397],{"type":15,"tag":391,"props":392,"children":394},"a",{"href":393},"/document/actions/actions",[395],{"type":20,"value":396},"アクションフレームワーク",{"type":20,"value":398}," — アクションシステムの仕組み、カスタムアクションの作成、複数のアクションを1つの元に戻すステップにまとめる方法",{"type":15,"tag":387,"props":400,"children":401},{},[402,408],{"type":15,"tag":391,"props":403,"children":405},{"href":404},"/document/actions/built-in-actions",[406],{"type":20,"value":407},"組み込みアクション",{"type":20,"value":409}," — すべての組み込みアクションタイプのリファレンス（SetCellData、SetRangeStyle、InsertRowsなど）",{"type":15,"tag":411,"props":412,"children":413},"style",{},[414],{"type":20,"value":415},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":61,"depth":61,"links":417},[418,419],{"id":34,"depth":61,"text":34},{"id":379,"depth":61,"text":379},"markdown","content:document:13.actions:1.index.md","content","document/13.actions/1.index.md","document/13.actions/1.index","md",{"loc":4},[428,749,752,755,758,761,764,767,770],{"title":429,"_path":430,"children":431},"Document","/document",[432,443,448,480,497,526,558,578,592,615,626,642,665,672,692,712,741],{"title":433,"_path":434,"children":435},"はじめに","/document/getting-started",[436,437,440],{"title":433,"_path":434},{"title":438,"_path":439},"インストール","/document/getting-started/installation",{"title":441,"_path":442},"V3 から V4 への移行ガイド","/document/getting-started/migrate-from-v3",{"title":444,"_path":445,"children":446},"ワークブック","/document/workbook",[447],{"title":444,"_path":445},{"title":449,"_path":450,"children":451},"ワークシート","/document/worksheet",[452,453,456,459,462,465,468,471,474,477],{"title":449,"_path":450},{"title":454,"_path":455},"行、列、ヘッダー","/document/worksheet/row-and-column",{"title":457,"_path":458},"範囲","/document/worksheet/range",{"title":460,"_path":461},"名前付き範囲","/document/worksheet/named-range",{"title":463,"_path":464},"セルの結合と解除","/document/worksheet/merge-and-unmerge",{"title":466,"_path":467},"パーシャルグリッド","/document/worksheet/partial-grid",{"title":469,"_path":470},"複数行ヘッダー","/document/worksheet/multiple-row-header",{"title":472,"_path":473},"ウィンドウ枠の固定","/document/worksheet/freeze",{"title":475,"_path":476},"ズーム","/document/worksheet/zoom",{"title":478,"_path":479},"設定とオプション","/document/worksheet/settings",{"title":481,"_path":482,"children":483},"選択とナビゲーション","/document/selection",[484,485,488,491,494],{"title":481,"_path":482},{"title":486,"_path":487},"フォーカスと選択","/document/selection/selection",{"title":489,"_path":490},"範囲の選択","/document/selection/pick-range",{"title":492,"_path":493},"クリップボード","/document/selection/clipboard",{"title":495,"_path":496},"テキスト検索","/document/selection/text-search",{"title":498,"_path":499,"children":500},"データ管理","/document/data",[501,502,505,508,511,514,517,520,523],{"title":498,"_path":499},{"title":503,"_path":504},"データソース","/document/data/datasource",{"title":506,"_path":507},"データフィルタリング","/document/data/data-filtering",{"title":509,"_path":510},"組み込みオートフィルター","/document/data/builtin-autofilter",{"title":512,"_path":513},"条件付きフィルター","/document/data/conditional-filter",{"title":515,"_path":516},"条件付きスタイル","/document/data/conditional-styles",{"title":518,"_path":519},"グループとアウトライン","/document/data/group-and-outline",{"title":521,"_path":522},"データバリデーション","/document/data/data-validation",{"title":524,"_path":525},"保護とロック","/document/data/protection",{"title":527,"_path":528,"children":529},"セル","/document/cell",[530,531,534,537,540,543,546,549,552,555],{"title":527,"_path":528},{"title":532,"_path":533},"セルの編集","/document/cell/cell-edit",{"title":535,"_path":536},"スタイル","/document/cell/style",{"title":538,"_path":539},"罫線","/document/cell/border",{"title":541,"_path":542},"データ書式","/document/cell/data-format",{"title":544,"_path":545},"カスタムデータフォーマッター","/document/cell/custom-data-formatter",{"title":547,"_path":548},"データ連続入力","/document/cell/auto-fill",{"title":550,"_path":551},"リッチフォーマットテキスト","/document/cell/rich-format-text",{"title":553,"_path":554},"セルテキストの回転","/document/cell/rotate-cell-text",{"title":556,"_path":557},"セルの反復処理","/document/cell/iterate-cells",{"title":559,"_path":560,"children":561},"セルタイプ","/document/cell-types",[562,563,566,569,572,575],{"title":559,"_path":560},{"title":564,"_path":565},"組み込みセルタイプ","/document/cell-types/built-in-cell-types",{"title":567,"_path":568},"カスタムセル","/document/cell-types/custom-cell",{"title":570,"_path":571},"ドロップダウンリストセル","/document/cell-types/dropdown-list-cell",{"title":573,"_path":574},"コンボリストセル","/document/cell-types/combo-list-cell",{"title":576,"_path":577},"列全体のセルタイプ","/document/cell-types/cells-type-for-entire-column",{"title":579,"_path":580,"children":581},"数式","/document/formula",[582,583,586,589],{"title":579,"_path":580},{"title":584,"_path":585},"カスタム関数","/document/formula/custom-function",{"title":587,"_path":588},"数式関数","/document/formula/formula-functions",{"title":590,"_path":591},"VLOOKUP","/document/formula/vlookup",{"title":593,"_path":594,"children":595},"チャート","/document/chart",[596,597,600,603,606,609,612],{"title":593,"_path":594},{"title":598,"_path":599},"縦棒グラフ","/document/chart/column-chart",{"title":601,"_path":602},"横棒グラフ","/document/chart/bar-chart",{"title":604,"_path":605},"折れ線グラフ","/document/chart/line-chart",{"title":607,"_path":608},"面グラフ","/document/chart/area-chart",{"title":610,"_path":611},"2D円グラフ","/document/chart/pie-2d-chart",{"title":613,"_path":614},"ドーナツグラフ","/document/chart/doughnut-chart",{"title":616,"_path":617,"children":618},"フローティングオブジェクト","/document/floating",[619,620,623],{"title":616,"_path":617},{"title":621,"_path":622},"描画シェイプ","/document/floating/drawing-shapes",{"title":624,"_path":625},"フローティング画像","/document/floating/floating-image",{"title":627,"_path":628,"children":629},"イベント","/document/events",[630,631,633,636,639],{"title":627,"_path":628},{"title":627,"_path":632},"/document/events/events",{"title":634,"_path":635},"キーボードイベント","/document/events/keyboard-events",{"title":637,"_path":638},"マウスイベント","/document/events/mouse-events",{"title":640,"_path":641},"SelectionRangeChanged","/document/events/selection-events",{"title":643,"_path":644,"children":645},"カスタマイズ","/document/customization",[646,647,650,653,656,659,662],{"title":643,"_path":644},{"title":648,"_path":649},"コントロールの外観","/document/customization/control-appearance",{"title":651,"_path":652},"シートタブコントロール","/document/customization/sheet-tab-control",{"title":654,"_path":655},"使用可能なホットキー","/document/customization/hot-keys",{"title":657,"_path":658},"言語ローカライズ","/document/customization/language-localization",{"title":660,"_path":661},"アドレスバーと数式バー","/document/customization/formula-bar",{"title":663,"_path":664},"ReoGridEditor","/document/customization/editor",{"title":8,"_path":4,"children":666},[667,668,670],{"title":8,"_path":4},{"title":669,"_path":393},"ReoGridアクションフレームワーク",{"title":671,"_path":404},"組み込みワークシートアクション",{"title":673,"_path":674,"children":675},"ファイル形式","/document/io",[676,677,680,683,686,689],{"title":673,"_path":674},{"title":678,"_path":679},"Excelファイル形式 (xlsx)","/document/io/excel-file-format",{"title":681,"_path":682},"CSV形式","/document/io/csv-format",{"title":684,"_path":685},"RGF形式","/document/io/rgf-format",{"title":687,"_path":688},"Excel形式とRGF形式の違い","/document/io/difference-between-excel-and-rgf-format",{"title":690,"_path":691},"HTMLとしてエクスポート","/document/io/export-as-html",{"title":693,"_path":694,"children":695},"高度な機能","/document/advanced",[696,697,700,703,706,709],{"title":693,"_path":694},{"title":698,"_path":699},"メモリワークブック","/document/advanced/memory-workbook",{"title":701,"_path":702},"ページングと印刷","/document/advanced/paging-and-print",{"title":704,"_path":705},"コントロールのリセット","/document/advanced/reset-control",{"title":707,"_path":708},"パフォーマンス","/document/advanced/performance",{"title":710,"_path":711},"設定","/document/advanced/settings",{"title":713,"_path":714,"children":715},"ハウツーガイド","/document/how-to",[716,717,720,723,726,729,732,735,738],{"title":713,"_path":714},{"title":718,"_path":719},"ReoGridの推奨プラクティス","/document/how-to/recommended-practice-for-using-reogrid",{"title":721,"_path":722},"DataTableでスプレッドシートを埋める","/document/how-to/fill-grid-with-datatable",{"title":724,"_path":725},"遅延読み込みモードによる大量データの高速読み込み","/document/how-to/fast-load-large-data-with-lazy-load-mode",{"title":727,"_path":728},"カスタムドロップダウンセルの作成","/document/how-to/create-custom-drop-down-cell",{"title":730,"_path":731},"日付ピッカーセルの作成","/document/how-to/create-date-picker-cell",{"title":733,"_path":734},"Excelファイルからすべての画像を読み取る","/document/how-to/read-all-images-from-excel-file",{"title":736,"_path":737},"VB.NETでReoGridを使用するためのヒント","/document/how-to/use-reogrid-in-vb-net",{"title":739,"_path":740},"全選択チェックボックスヘッダーの作成","/document/how-to/create-select-all-checkbox-header",{"title":742,"_path":743,"children":744},"トラブルシューティング","/document/troubleshooting",[745,746],{"title":742,"_path":743},{"title":747,"_path":748},"PInvoke例外の修正","/document/troubleshooting/fix-pinvoke-exception",{"title":750,"_path":751},"エディション・機能一覧","/editions-features",{"title":753,"_path":754},"個人情報保護方針","/privacy-policy",{"title":756,"_path":757},"動作環境","/requirements",{"title":759,"_path":760},"ReoGrid利用許諾契約書","/terms",{"title":762,"_path":763},"ReoGrid利用許諾契約書(Ver.3)","/terms-v3",{"title":765,"_path":766},"ReoGrid利用許諾契約書(Ver.4)","/terms-v4",{"title":768,"_path":769},"ReoGrid 4 トライアルライセンスポリシー","/terms-v4-trial",{"title":771,"_path":772},"ReoGrid Web Edition 利用許諾契約書","/terms-web",1786025056801]