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