[{"data":1,"prerenderedAt":2311},["ShallowReactive",2],{"content-query-xb7gnHCA6z":3,"navigation":1964},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"body":11,"_type":1957,"_id":1958,"_source":1959,"_file":1960,"_stem":1961,"_extension":1962,"sitemap":1963},"/document/data/protection","data",false,"","保護とロック","ReoGridは、ユーザーによるデータの変更を防止するために、セルレベルおよびワークシートレベルの保護を提供しています。これには、個々のセルのロック、ワークシート全体のロック、ワークブックの読み取り専用化が含まれます。","2025-03-19",{"type":12,"children":13,"toc":1935},"root",[14,21,27,49,56,135,140,281,286,291,437,443,456,492,529,534,539,609,614,646,651,656,683,688,693,717,722,727,754,759,764,833,846,851,856,985,990,995,1053,1058,1071,1165,1170,1175,1262,1267,1494,1499,1504,1509,1887,1892,1929],{"type":15,"tag":16,"props":17,"children":18},"element","p",{},[19],{"type":20,"value":9},"text",{"type":15,"tag":22,"props":23,"children":25},"h2",{"id":24},"セルレベルのロック",[26],{"type":20,"value":24},{"type":15,"tag":16,"props":28,"children":29},{},[30,32,39,41,47],{"type":20,"value":31},"各セルには、セルを編集できるかどうかを制御する ",{"type":15,"tag":33,"props":34,"children":36},"code",{"className":35},[],[37],{"type":20,"value":38},"CellLock",{"type":20,"value":40}," 型の ",{"type":15,"tag":33,"props":42,"children":44},{"className":43},[],[45],{"type":20,"value":46},"IsLocked",{"type":20,"value":48}," プロパティがあります。",{"type":15,"tag":50,"props":51,"children":53},"h3",{"id":52},"celllock列挙型",[54],{"type":20,"value":55},"CellLock列挙型",{"type":15,"tag":57,"props":58,"children":59},"table",{},[60,79],{"type":15,"tag":61,"props":62,"children":63},"thead",{},[64],{"type":15,"tag":65,"props":66,"children":67},"tr",{},[68,74],{"type":15,"tag":69,"props":70,"children":71},"th",{},[72],{"type":20,"value":73},"値",{"type":15,"tag":69,"props":75,"children":76},{},[77],{"type":20,"value":78},"説明",{"type":15,"tag":80,"props":81,"children":82},"tbody",{},[83,101,118],{"type":15,"tag":65,"props":84,"children":85},{},[86,96],{"type":15,"tag":87,"props":88,"children":89},"td",{},[90],{"type":15,"tag":33,"props":91,"children":93},{"className":92},[],[94],{"type":20,"value":95},"Inherit",{"type":15,"tag":87,"props":97,"children":98},{},[99],{"type":20,"value":100},"ワークシートからロック状態を継承（デフォルト）",{"type":15,"tag":65,"props":102,"children":103},{},[104,113],{"type":15,"tag":87,"props":105,"children":106},{},[107],{"type":15,"tag":33,"props":108,"children":110},{"className":109},[],[111],{"type":20,"value":112},"Locked",{"type":15,"tag":87,"props":114,"children":115},{},[116],{"type":20,"value":117},"セルが明示的にロック — 編集不可",{"type":15,"tag":65,"props":119,"children":120},{},[121,130],{"type":15,"tag":87,"props":122,"children":123},{},[124],{"type":15,"tag":33,"props":125,"children":127},{"className":126},[],[128],{"type":20,"value":129},"Unlocked",{"type":15,"tag":87,"props":131,"children":132},{},[133],{"type":20,"value":134},"セルが明示的にロック解除 — 常に編集可能",{"type":15,"tag":50,"props":136,"children":138},{"id":137},"個々のセルのロック",[139],{"type":20,"value":137},{"type":15,"tag":141,"props":142,"children":146},"pre",{"className":143,"code":144,"language":145,"meta":7,"style":7},"language-cs shiki shiki-themes github-light github-dark github-light","// Lock a specific cell\nsheet.Cells[\"A1\"].IsLocked = CellLock.Locked;\n\n// Unlock a specific cell\nsheet.Cells[\"B2\"].IsLocked = CellLock.Unlocked;\n\n// Reset to inherit from worksheet\nsheet.Cells[\"A1\"].IsLocked = CellLock.Inherit;\n","cs",[147],{"type":15,"tag":33,"props":148,"children":149},{"__ignoreMap":7},[150,162,194,204,213,239,247,256],{"type":15,"tag":151,"props":152,"children":155},"span",{"class":153,"line":154},"line",1,[156],{"type":15,"tag":151,"props":157,"children":159},{"style":158},"--shiki-light:#6A737D;--shiki-dark:#6A737D;--shiki-default:#6A737D",[160],{"type":20,"value":161},"// Lock a specific cell\n",{"type":15,"tag":151,"props":163,"children":165},{"class":153,"line":164},2,[166,172,178,183,189],{"type":15,"tag":151,"props":167,"children":169},{"style":168},"--shiki-light:#24292E;--shiki-dark:#E1E4E8;--shiki-default:#24292E",[170],{"type":20,"value":171},"sheet.Cells[",{"type":15,"tag":151,"props":173,"children":175},{"style":174},"--shiki-light:#032F62;--shiki-dark:#9ECBFF;--shiki-default:#032F62",[176],{"type":20,"value":177},"\"A1\"",{"type":15,"tag":151,"props":179,"children":180},{"style":168},[181],{"type":20,"value":182},"].IsLocked ",{"type":15,"tag":151,"props":184,"children":186},{"style":185},"--shiki-light:#D73A49;--shiki-dark:#F97583;--shiki-default:#D73A49",[187],{"type":20,"value":188},"=",{"type":15,"tag":151,"props":190,"children":191},{"style":168},[192],{"type":20,"value":193}," CellLock.Locked;\n",{"type":15,"tag":151,"props":195,"children":197},{"class":153,"line":196},3,[198],{"type":15,"tag":151,"props":199,"children":201},{"emptyLinePlaceholder":200},true,[202],{"type":20,"value":203},"\n",{"type":15,"tag":151,"props":205,"children":207},{"class":153,"line":206},4,[208],{"type":15,"tag":151,"props":209,"children":210},{"style":158},[211],{"type":20,"value":212},"// Unlock a specific cell\n",{"type":15,"tag":151,"props":214,"children":216},{"class":153,"line":215},5,[217,221,226,230,234],{"type":15,"tag":151,"props":218,"children":219},{"style":168},[220],{"type":20,"value":171},{"type":15,"tag":151,"props":222,"children":223},{"style":174},[224],{"type":20,"value":225},"\"B2\"",{"type":15,"tag":151,"props":227,"children":228},{"style":168},[229],{"type":20,"value":182},{"type":15,"tag":151,"props":231,"children":232},{"style":185},[233],{"type":20,"value":188},{"type":15,"tag":151,"props":235,"children":236},{"style":168},[237],{"type":20,"value":238}," CellLock.Unlocked;\n",{"type":15,"tag":151,"props":240,"children":242},{"class":153,"line":241},6,[243],{"type":15,"tag":151,"props":244,"children":245},{"emptyLinePlaceholder":200},[246],{"type":20,"value":203},{"type":15,"tag":151,"props":248,"children":250},{"class":153,"line":249},7,[251],{"type":15,"tag":151,"props":252,"children":253},{"style":158},[254],{"type":20,"value":255},"// Reset to inherit from worksheet\n",{"type":15,"tag":151,"props":257,"children":259},{"class":153,"line":258},8,[260,264,268,272,276],{"type":15,"tag":151,"props":261,"children":262},{"style":168},[263],{"type":20,"value":171},{"type":15,"tag":151,"props":265,"children":266},{"style":174},[267],{"type":20,"value":177},{"type":15,"tag":151,"props":269,"children":270},{"style":168},[271],{"type":20,"value":182},{"type":15,"tag":151,"props":273,"children":274},{"style":185},[275],{"type":20,"value":188},{"type":15,"tag":151,"props":277,"children":278},{"style":168},[279],{"type":20,"value":280}," CellLock.Inherit;\n",{"type":15,"tag":50,"props":282,"children":284},{"id":283},"セル範囲のロック",[285],{"type":20,"value":283},{"type":15,"tag":16,"props":287,"children":288},{},[289],{"type":20,"value":290},"複数のセルをロックするには、反復処理を行います：",{"type":15,"tag":141,"props":292,"children":294},{"className":143,"code":293,"language":145,"meta":7,"style":7},"sheet.IterateCells(\"A1:D10\", (row, col, cell) =>\n{\n    if (cell != null) cell.IsLocked = CellLock.Locked;\n    return true; // continue iteration\n});\n",[295],{"type":15,"tag":33,"props":296,"children":297},{"__ignoreMap":7},[298,361,369,406,429],{"type":15,"tag":151,"props":299,"children":300},{"class":153,"line":154},[301,306,312,317,322,327,332,337,342,346,351,356],{"type":15,"tag":151,"props":302,"children":303},{"style":168},[304],{"type":20,"value":305},"sheet.",{"type":15,"tag":151,"props":307,"children":309},{"style":308},"--shiki-light:#6F42C1;--shiki-dark:#B392F0;--shiki-default:#6F42C1",[310],{"type":20,"value":311},"IterateCells",{"type":15,"tag":151,"props":313,"children":314},{"style":168},[315],{"type":20,"value":316},"(",{"type":15,"tag":151,"props":318,"children":319},{"style":174},[320],{"type":20,"value":321},"\"A1:D10\"",{"type":15,"tag":151,"props":323,"children":324},{"style":168},[325],{"type":20,"value":326},", (",{"type":15,"tag":151,"props":328,"children":329},{"style":308},[330],{"type":20,"value":331},"row",{"type":15,"tag":151,"props":333,"children":334},{"style":168},[335],{"type":20,"value":336},", ",{"type":15,"tag":151,"props":338,"children":339},{"style":308},[340],{"type":20,"value":341},"col",{"type":15,"tag":151,"props":343,"children":344},{"style":168},[345],{"type":20,"value":336},{"type":15,"tag":151,"props":347,"children":348},{"style":308},[349],{"type":20,"value":350},"cell",{"type":15,"tag":151,"props":352,"children":353},{"style":168},[354],{"type":20,"value":355},") ",{"type":15,"tag":151,"props":357,"children":358},{"style":185},[359],{"type":20,"value":360},"=>\n",{"type":15,"tag":151,"props":362,"children":363},{"class":153,"line":164},[364],{"type":15,"tag":151,"props":365,"children":366},{"style":168},[367],{"type":20,"value":368},"{\n",{"type":15,"tag":151,"props":370,"children":371},{"class":153,"line":196},[372,377,382,387,393,398,402],{"type":15,"tag":151,"props":373,"children":374},{"style":185},[375],{"type":20,"value":376},"    if",{"type":15,"tag":151,"props":378,"children":379},{"style":168},[380],{"type":20,"value":381}," (cell ",{"type":15,"tag":151,"props":383,"children":384},{"style":185},[385],{"type":20,"value":386},"!=",{"type":15,"tag":151,"props":388,"children":390},{"style":389},"--shiki-light:#005CC5;--shiki-dark:#79B8FF;--shiki-default:#005CC5",[391],{"type":20,"value":392}," null",{"type":15,"tag":151,"props":394,"children":395},{"style":168},[396],{"type":20,"value":397},") cell.IsLocked ",{"type":15,"tag":151,"props":399,"children":400},{"style":185},[401],{"type":20,"value":188},{"type":15,"tag":151,"props":403,"children":404},{"style":168},[405],{"type":20,"value":193},{"type":15,"tag":151,"props":407,"children":408},{"class":153,"line":206},[409,414,419,424],{"type":15,"tag":151,"props":410,"children":411},{"style":185},[412],{"type":20,"value":413},"    return",{"type":15,"tag":151,"props":415,"children":416},{"style":389},[417],{"type":20,"value":418}," true",{"type":15,"tag":151,"props":420,"children":421},{"style":168},[422],{"type":20,"value":423},"; ",{"type":15,"tag":151,"props":425,"children":426},{"style":158},[427],{"type":20,"value":428},"// continue iteration\n",{"type":15,"tag":151,"props":430,"children":431},{"class":153,"line":215},[432],{"type":15,"tag":151,"props":433,"children":434},{"style":168},[435],{"type":20,"value":436},"});\n",{"type":15,"tag":50,"props":438,"children":440},{"id":439},"セルのreadonlyプロパティ",[441],{"type":20,"value":442},"セルのReadOnlyプロパティ",{"type":15,"tag":16,"props":444,"children":445},{},[446,448,454],{"type":20,"value":447},"個々のセルには、よりシンプルな読み取り専用フラグとして ",{"type":15,"tag":33,"props":449,"children":451},{"className":450},[],[452],{"type":20,"value":453},"IsReadOnly",{"type":20,"value":455}," プロパティもあります：",{"type":15,"tag":141,"props":457,"children":459},{"className":143,"code":458,"language":145,"meta":7,"style":7},"sheet.Cells[\"A1\"].IsReadOnly = true;\n",[460],{"type":15,"tag":33,"props":461,"children":462},{"__ignoreMap":7},[463],{"type":15,"tag":151,"props":464,"children":465},{"class":153,"line":154},[466,470,474,479,483,487],{"type":15,"tag":151,"props":467,"children":468},{"style":168},[469],{"type":20,"value":171},{"type":15,"tag":151,"props":471,"children":472},{"style":174},[473],{"type":20,"value":177},{"type":15,"tag":151,"props":475,"children":476},{"style":168},[477],{"type":20,"value":478},"].IsReadOnly ",{"type":15,"tag":151,"props":480,"children":481},{"style":185},[482],{"type":20,"value":188},{"type":15,"tag":151,"props":484,"children":485},{"style":389},[486],{"type":20,"value":418},{"type":15,"tag":151,"props":488,"children":489},{"style":168},[490],{"type":20,"value":491},";\n",{"type":15,"tag":493,"props":494,"children":495},"blockquote",{},[496],{"type":15,"tag":16,"props":497,"children":498},{},[499,505,507,512,514,519,521,527],{"type":15,"tag":500,"props":501,"children":502},"strong",{},[503],{"type":20,"value":504},"注意:",{"type":20,"value":506}," ロックされたセルが編集中の場合、",{"type":15,"tag":33,"props":508,"children":510},{"className":509},[],[511],{"type":20,"value":46},{"type":20,"value":513}," を ",{"type":15,"tag":33,"props":515,"children":517},{"className":516},[],[518],{"type":20,"value":112},{"type":20,"value":520}," に設定すると編集セッションが即座に終了します。",{"type":15,"tag":33,"props":522,"children":524},{"className":523},[],[525],{"type":20,"value":526},"AlwaysMoveSelectionToUnlockedCell",{"type":20,"value":528}," が有効な場合、選択も最も近いロック解除されたセルに移動します。",{"type":15,"tag":22,"props":530,"children":532},{"id":531},"ワークシートレベルのロック",[533],{"type":20,"value":531},{"type":15,"tag":16,"props":535,"children":536},{},[537],{"type":20,"value":538},"ワークシート全体をロックまたはロック解除します：",{"type":15,"tag":141,"props":540,"children":542},{"className":143,"code":541,"language":145,"meta":7,"style":7},"// Lock the entire worksheet\nsheet.IsLocked = true;\n\n// Unlock the entire worksheet\nsheet.IsLocked = false;\n",[543],{"type":15,"tag":33,"props":544,"children":545},{"__ignoreMap":7},[546,554,574,581,589],{"type":15,"tag":151,"props":547,"children":548},{"class":153,"line":154},[549],{"type":15,"tag":151,"props":550,"children":551},{"style":158},[552],{"type":20,"value":553},"// Lock the entire worksheet\n",{"type":15,"tag":151,"props":555,"children":556},{"class":153,"line":164},[557,562,566,570],{"type":15,"tag":151,"props":558,"children":559},{"style":168},[560],{"type":20,"value":561},"sheet.IsLocked ",{"type":15,"tag":151,"props":563,"children":564},{"style":185},[565],{"type":20,"value":188},{"type":15,"tag":151,"props":567,"children":568},{"style":389},[569],{"type":20,"value":418},{"type":15,"tag":151,"props":571,"children":572},{"style":168},[573],{"type":20,"value":491},{"type":15,"tag":151,"props":575,"children":576},{"class":153,"line":196},[577],{"type":15,"tag":151,"props":578,"children":579},{"emptyLinePlaceholder":200},[580],{"type":20,"value":203},{"type":15,"tag":151,"props":582,"children":583},{"class":153,"line":206},[584],{"type":15,"tag":151,"props":585,"children":586},{"style":158},[587],{"type":20,"value":588},"// Unlock the entire worksheet\n",{"type":15,"tag":151,"props":590,"children":591},{"class":153,"line":215},[592,596,600,605],{"type":15,"tag":151,"props":593,"children":594},{"style":168},[595],{"type":20,"value":561},{"type":15,"tag":151,"props":597,"children":598},{"style":185},[599],{"type":20,"value":188},{"type":15,"tag":151,"props":601,"children":602},{"style":389},[603],{"type":20,"value":604}," false",{"type":15,"tag":151,"props":606,"children":607},{"style":168},[608],{"type":20,"value":491},{"type":15,"tag":16,"props":610,"children":611},{},[612],{"type":20,"value":613},"ワークシートがロックされている場合：",{"type":15,"tag":615,"props":616,"children":617},"ul",{},[618,630,641],{"type":15,"tag":619,"props":620,"children":621},"li",{},[622,628],{"type":15,"tag":33,"props":623,"children":625},{"className":624},[],[626],{"type":20,"value":627},"IsLocked = CellLock.Inherit",{"type":20,"value":629}," のセルはロックされます",{"type":15,"tag":619,"props":631,"children":632},{},[633,639],{"type":15,"tag":33,"props":634,"children":636},{"className":635},[],[637],{"type":20,"value":638},"IsLocked = CellLock.Unlocked",{"type":20,"value":640}," のセルは編集可能なままです",{"type":15,"tag":619,"props":642,"children":643},{},[644],{"type":20,"value":645},"アクティブな編集セッションは即座に終了します",{"type":15,"tag":50,"props":647,"children":649},{"id":648},"ロックされたセルの選択可能性",[650],{"type":20,"value":648},{"type":15,"tag":16,"props":652,"children":653},{},[654],{"type":20,"value":655},"デフォルトでは、ロックされたセルは引き続き選択可能です。ロックされたセルの選択を防止するには：",{"type":15,"tag":141,"props":657,"children":659},{"className":143,"code":658,"language":145,"meta":7,"style":7},"sheet.IsLockedCellSelectable = false;\n",[660],{"type":15,"tag":33,"props":661,"children":662},{"__ignoreMap":7},[663],{"type":15,"tag":151,"props":664,"children":665},{"class":153,"line":154},[666,671,675,679],{"type":15,"tag":151,"props":667,"children":668},{"style":168},[669],{"type":20,"value":670},"sheet.IsLockedCellSelectable ",{"type":15,"tag":151,"props":672,"children":673},{"style":185},[674],{"type":20,"value":188},{"type":15,"tag":151,"props":676,"children":677},{"style":389},[678],{"type":20,"value":604},{"type":15,"tag":151,"props":680,"children":681},{"style":168},[682],{"type":20,"value":491},{"type":15,"tag":50,"props":684,"children":686},{"id":685},"ロック解除されたセルへの選択移動",[687],{"type":20,"value":685},{"type":15,"tag":16,"props":689,"children":690},{},[691],{"type":20,"value":692},"プログラムで最も近いロック解除されたセルに選択を移動します：",{"type":15,"tag":141,"props":694,"children":696},{"className":143,"code":695,"language":145,"meta":7,"style":7},"sheet.MoveSelectionRangeToUnlockedCell();\n",[697],{"type":15,"tag":33,"props":698,"children":699},{"__ignoreMap":7},[700],{"type":15,"tag":151,"props":701,"children":702},{"class":153,"line":154},[703,707,712],{"type":15,"tag":151,"props":704,"children":705},{"style":168},[706],{"type":20,"value":305},{"type":15,"tag":151,"props":708,"children":709},{"style":308},[710],{"type":20,"value":711},"MoveSelectionRangeToUnlockedCell",{"type":15,"tag":151,"props":713,"children":714},{"style":168},[715],{"type":20,"value":716},"();\n",{"type":15,"tag":50,"props":718,"children":720},{"id":719},"ロック解除セルへの自動移動",[721],{"type":20,"value":719},{"type":15,"tag":16,"props":723,"children":724},{},[725],{"type":20,"value":726},"ワークシートがロックされている場合に、自動的にロック解除されたセルに選択を移動します：",{"type":15,"tag":141,"props":728,"children":730},{"className":143,"code":729,"language":145,"meta":7,"style":7},"sheet.Options.AlwaysMoveSelectionToUnlockedCell = true;\n",[731],{"type":15,"tag":33,"props":732,"children":733},{"__ignoreMap":7},[734],{"type":15,"tag":151,"props":735,"children":736},{"class":153,"line":154},[737,742,746,750],{"type":15,"tag":151,"props":738,"children":739},{"style":168},[740],{"type":20,"value":741},"sheet.Options.AlwaysMoveSelectionToUnlockedCell ",{"type":15,"tag":151,"props":743,"children":744},{"style":185},[745],{"type":20,"value":188},{"type":15,"tag":151,"props":747,"children":748},{"style":389},[749],{"type":20,"value":418},{"type":15,"tag":151,"props":751,"children":752},{"style":168},[753],{"type":20,"value":491},{"type":15,"tag":22,"props":755,"children":757},{"id":756},"ワークブックレベルの読み取り専用",[758],{"type":20,"value":756},{"type":15,"tag":16,"props":760,"children":761},{},[762],{"type":20,"value":763},"ワークブック全体（すべてのワークシート）を読み取り専用モードに設定します：",{"type":15,"tag":141,"props":765,"children":767},{"className":143,"code":766,"language":145,"meta":7,"style":7},"// Make the entire workbook read-only\nreoGridControl.Readonly = true;\n\n// Make it writable again\nreoGridControl.Readonly = false;\n",[768],{"type":15,"tag":33,"props":769,"children":770},{"__ignoreMap":7},[771,779,799,806,814],{"type":15,"tag":151,"props":772,"children":773},{"class":153,"line":154},[774],{"type":15,"tag":151,"props":775,"children":776},{"style":158},[777],{"type":20,"value":778},"// Make the entire workbook read-only\n",{"type":15,"tag":151,"props":780,"children":781},{"class":153,"line":164},[782,787,791,795],{"type":15,"tag":151,"props":783,"children":784},{"style":168},[785],{"type":20,"value":786},"reoGridControl.Readonly ",{"type":15,"tag":151,"props":788,"children":789},{"style":185},[790],{"type":20,"value":188},{"type":15,"tag":151,"props":792,"children":793},{"style":389},[794],{"type":20,"value":418},{"type":15,"tag":151,"props":796,"children":797},{"style":168},[798],{"type":20,"value":491},{"type":15,"tag":151,"props":800,"children":801},{"class":153,"line":196},[802],{"type":15,"tag":151,"props":803,"children":804},{"emptyLinePlaceholder":200},[805],{"type":20,"value":203},{"type":15,"tag":151,"props":807,"children":808},{"class":153,"line":206},[809],{"type":15,"tag":151,"props":810,"children":811},{"style":158},[812],{"type":20,"value":813},"// Make it writable again\n",{"type":15,"tag":151,"props":815,"children":816},{"class":153,"line":215},[817,821,825,829],{"type":15,"tag":151,"props":818,"children":819},{"style":168},[820],{"type":20,"value":786},{"type":15,"tag":151,"props":822,"children":823},{"style":185},[824],{"type":20,"value":188},{"type":15,"tag":151,"props":826,"children":827},{"style":389},[828],{"type":20,"value":604},{"type":15,"tag":151,"props":830,"children":831},{"style":168},[832],{"type":20,"value":491},{"type":15,"tag":16,"props":834,"children":835},{},[836,838,844],{"type":20,"value":837},"これにより、すべてのワークシートで ",{"type":15,"tag":33,"props":839,"children":841},{"className":840},[],[842],{"type":20,"value":843},"Edit_Readonly",{"type":20,"value":845}," ワークシート設定が設定されます。",{"type":15,"tag":22,"props":847,"children":849},{"id":848},"ワークシートの読み取り専用設定",[850],{"type":20,"value":848},{"type":15,"tag":16,"props":852,"children":853},{},[854],{"type":20,"value":855},"ワークシート設定を使用して、個々のワークシートを読み取り専用にします：",{"type":15,"tag":141,"props":857,"children":859},{"className":143,"code":858,"language":145,"meta":7,"style":7},"// Make a single worksheet read-only\nsheet.SetSettings(WorksheetSettings.Edit_Readonly, true);\n\n// Check if read-only\nbool isReadonly = sheet.HasSettings(WorksheetSettings.Edit_Readonly);\n\n// Make writable\nsheet.SetSettings(WorksheetSettings.Edit_Readonly, false);\n",[860],{"type":15,"tag":33,"props":861,"children":862},{"__ignoreMap":7},[863,871,898,905,913,946,953,961],{"type":15,"tag":151,"props":864,"children":865},{"class":153,"line":154},[866],{"type":15,"tag":151,"props":867,"children":868},{"style":158},[869],{"type":20,"value":870},"// Make a single worksheet read-only\n",{"type":15,"tag":151,"props":872,"children":873},{"class":153,"line":164},[874,878,883,888,893],{"type":15,"tag":151,"props":875,"children":876},{"style":168},[877],{"type":20,"value":305},{"type":15,"tag":151,"props":879,"children":880},{"style":308},[881],{"type":20,"value":882},"SetSettings",{"type":15,"tag":151,"props":884,"children":885},{"style":168},[886],{"type":20,"value":887},"(WorksheetSettings.Edit_Readonly, ",{"type":15,"tag":151,"props":889,"children":890},{"style":389},[891],{"type":20,"value":892},"true",{"type":15,"tag":151,"props":894,"children":895},{"style":168},[896],{"type":20,"value":897},");\n",{"type":15,"tag":151,"props":899,"children":900},{"class":153,"line":196},[901],{"type":15,"tag":151,"props":902,"children":903},{"emptyLinePlaceholder":200},[904],{"type":20,"value":203},{"type":15,"tag":151,"props":906,"children":907},{"class":153,"line":206},[908],{"type":15,"tag":151,"props":909,"children":910},{"style":158},[911],{"type":20,"value":912},"// Check if read-only\n",{"type":15,"tag":151,"props":914,"children":915},{"class":153,"line":215},[916,921,926,931,936,941],{"type":15,"tag":151,"props":917,"children":918},{"style":185},[919],{"type":20,"value":920},"bool",{"type":15,"tag":151,"props":922,"children":923},{"style":308},[924],{"type":20,"value":925}," isReadonly",{"type":15,"tag":151,"props":927,"children":928},{"style":185},[929],{"type":20,"value":930}," =",{"type":15,"tag":151,"props":932,"children":933},{"style":168},[934],{"type":20,"value":935}," sheet.",{"type":15,"tag":151,"props":937,"children":938},{"style":308},[939],{"type":20,"value":940},"HasSettings",{"type":15,"tag":151,"props":942,"children":943},{"style":168},[944],{"type":20,"value":945},"(WorksheetSettings.Edit_Readonly);\n",{"type":15,"tag":151,"props":947,"children":948},{"class":153,"line":241},[949],{"type":15,"tag":151,"props":950,"children":951},{"emptyLinePlaceholder":200},[952],{"type":20,"value":203},{"type":15,"tag":151,"props":954,"children":955},{"class":153,"line":249},[956],{"type":15,"tag":151,"props":957,"children":958},{"style":158},[959],{"type":20,"value":960},"// Make writable\n",{"type":15,"tag":151,"props":962,"children":963},{"class":153,"line":258},[964,968,972,976,981],{"type":15,"tag":151,"props":965,"children":966},{"style":168},[967],{"type":20,"value":305},{"type":15,"tag":151,"props":969,"children":970},{"style":308},[971],{"type":20,"value":882},{"type":15,"tag":151,"props":973,"children":974},{"style":168},[975],{"type":20,"value":887},{"type":15,"tag":151,"props":977,"children":978},{"style":389},[979],{"type":20,"value":980},"false",{"type":15,"tag":151,"props":982,"children":983},{"style":168},[984],{"type":20,"value":897},{"type":15,"tag":22,"props":986,"children":988},{"id":987},"範囲の読み取り専用",[989],{"type":20,"value":987},{"type":15,"tag":16,"props":991,"children":992},{},[993],{"type":20,"value":994},"範囲インスタンスを通じてセル範囲を読み取り専用にします：",{"type":15,"tag":141,"props":996,"children":998},{"className":143,"code":997,"language":145,"meta":7,"style":7},"var range = sheet.Ranges[\"A1:D10\"];\nrange.IsReadonly = true;\n",[999],{"type":15,"tag":33,"props":1000,"children":1001},{"__ignoreMap":7},[1002,1033],{"type":15,"tag":151,"props":1003,"children":1004},{"class":153,"line":154},[1005,1010,1015,1019,1024,1028],{"type":15,"tag":151,"props":1006,"children":1007},{"style":185},[1008],{"type":20,"value":1009},"var",{"type":15,"tag":151,"props":1011,"children":1012},{"style":308},[1013],{"type":20,"value":1014}," range",{"type":15,"tag":151,"props":1016,"children":1017},{"style":185},[1018],{"type":20,"value":930},{"type":15,"tag":151,"props":1020,"children":1021},{"style":168},[1022],{"type":20,"value":1023}," sheet.Ranges[",{"type":15,"tag":151,"props":1025,"children":1026},{"style":174},[1027],{"type":20,"value":321},{"type":15,"tag":151,"props":1029,"children":1030},{"style":168},[1031],{"type":20,"value":1032},"];\n",{"type":15,"tag":151,"props":1034,"children":1035},{"class":153,"line":164},[1036,1041,1045,1049],{"type":15,"tag":151,"props":1037,"children":1038},{"style":168},[1039],{"type":20,"value":1040},"range.IsReadonly ",{"type":15,"tag":151,"props":1042,"children":1043},{"style":185},[1044],{"type":20,"value":188},{"type":15,"tag":151,"props":1046,"children":1047},{"style":389},[1048],{"type":20,"value":418},{"type":15,"tag":151,"props":1050,"children":1051},{"style":168},[1052],{"type":20,"value":491},{"type":15,"tag":22,"props":1054,"children":1056},{"id":1055},"カスタムセルボディと読み取り専用",[1057],{"type":20,"value":1055},{"type":15,"tag":16,"props":1059,"children":1060},{},[1061,1063,1069],{"type":20,"value":1062},"カスタムセルボディ（ボタン、チェックボックスなど）は、所有者セルが読み取り専用の場合に自動的に無効になります。この動作は ",{"type":15,"tag":33,"props":1064,"children":1066},{"className":1065},[],[1067],{"type":20,"value":1068},"DisableWhenCellReadonly",{"type":20,"value":1070}," プロパティで制御されます：",{"type":15,"tag":141,"props":1072,"children":1074},{"className":143,"code":1073,"language":145,"meta":7,"style":7},"public class MyCustomCell : CellBody\n{\n    // Override to keep the cell body active even when the cell is read-only\n    public override bool DisableWhenCellReadonly => false;\n}\n",[1075],{"type":15,"tag":33,"props":1076,"children":1077},{"__ignoreMap":7},[1078,1106,1113,1121,1157],{"type":15,"tag":151,"props":1079,"children":1080},{"class":153,"line":154},[1081,1086,1091,1096,1101],{"type":15,"tag":151,"props":1082,"children":1083},{"style":185},[1084],{"type":20,"value":1085},"public",{"type":15,"tag":151,"props":1087,"children":1088},{"style":185},[1089],{"type":20,"value":1090}," class",{"type":15,"tag":151,"props":1092,"children":1093},{"style":308},[1094],{"type":20,"value":1095}," MyCustomCell",{"type":15,"tag":151,"props":1097,"children":1098},{"style":168},[1099],{"type":20,"value":1100}," : ",{"type":15,"tag":151,"props":1102,"children":1103},{"style":308},[1104],{"type":20,"value":1105},"CellBody\n",{"type":15,"tag":151,"props":1107,"children":1108},{"class":153,"line":164},[1109],{"type":15,"tag":151,"props":1110,"children":1111},{"style":168},[1112],{"type":20,"value":368},{"type":15,"tag":151,"props":1114,"children":1115},{"class":153,"line":196},[1116],{"type":15,"tag":151,"props":1117,"children":1118},{"style":158},[1119],{"type":20,"value":1120},"    // Override to keep the cell body active even when the cell is read-only\n",{"type":15,"tag":151,"props":1122,"children":1123},{"class":153,"line":206},[1124,1129,1134,1139,1144,1149,1153],{"type":15,"tag":151,"props":1125,"children":1126},{"style":185},[1127],{"type":20,"value":1128},"    public",{"type":15,"tag":151,"props":1130,"children":1131},{"style":185},[1132],{"type":20,"value":1133}," override",{"type":15,"tag":151,"props":1135,"children":1136},{"style":185},[1137],{"type":20,"value":1138}," bool",{"type":15,"tag":151,"props":1140,"children":1141},{"style":308},[1142],{"type":20,"value":1143}," DisableWhenCellReadonly",{"type":15,"tag":151,"props":1145,"children":1146},{"style":185},[1147],{"type":20,"value":1148}," =>",{"type":15,"tag":151,"props":1150,"children":1151},{"style":389},[1152],{"type":20,"value":604},{"type":15,"tag":151,"props":1154,"children":1155},{"style":168},[1156],{"type":20,"value":491},{"type":15,"tag":151,"props":1158,"children":1159},{"class":153,"line":215},[1160],{"type":15,"tag":151,"props":1161,"children":1162},{"style":168},[1163],{"type":20,"value":1164},"}\n",{"type":15,"tag":22,"props":1166,"children":1168},{"id":1167},"例外処理",[1169],{"type":20,"value":1167},{"type":15,"tag":16,"props":1171,"children":1172},{},[1173],{"type":20,"value":1174},"コードが読み取り専用セルの変更を試みると、ReoGridは特定の例外をスローします：",{"type":15,"tag":57,"props":1176,"children":1177},{},[1178,1193],{"type":15,"tag":61,"props":1179,"children":1180},{},[1181],{"type":15,"tag":65,"props":1182,"children":1183},{},[1184,1189],{"type":15,"tag":69,"props":1185,"children":1186},{},[1187],{"type":20,"value":1188},"例外",{"type":15,"tag":69,"props":1190,"children":1191},{},[1192],{"type":20,"value":78},{"type":15,"tag":80,"props":1194,"children":1195},{},[1196,1213,1238],{"type":15,"tag":65,"props":1197,"children":1198},{},[1199,1208],{"type":15,"tag":87,"props":1200,"children":1201},{},[1202],{"type":15,"tag":33,"props":1203,"children":1205},{"className":1204},[],[1206],{"type":20,"value":1207},"OperationOnReadonlyCellException",{"type":15,"tag":87,"props":1209,"children":1210},{},[1211],{"type":20,"value":1212},"読み取り専用違反の基本例外",{"type":15,"tag":65,"props":1214,"children":1215},{},[1216,1225],{"type":15,"tag":87,"props":1217,"children":1218},{},[1219],{"type":15,"tag":33,"props":1220,"children":1222},{"className":1221},[],[1223],{"type":20,"value":1224},"CellDataReadonlyException",{"type":15,"tag":87,"props":1226,"children":1227},{},[1228,1230,1236],{"type":20,"value":1229},"読み取り専用セルのデータ変更の試み（",{"type":15,"tag":33,"props":1231,"children":1233},{"className":1232},[],[1234],{"type":20,"value":1235},"CellPos",{"type":20,"value":1237}," を提供）",{"type":15,"tag":65,"props":1239,"children":1240},{},[1241,1250],{"type":15,"tag":87,"props":1242,"children":1243},{},[1244],{"type":15,"tag":33,"props":1245,"children":1247},{"className":1246},[],[1248],{"type":20,"value":1249},"RangeContainsReadonlyCellsException",{"type":15,"tag":87,"props":1251,"children":1252},{},[1253,1255,1261],{"type":20,"value":1254},"読み取り専用セルを含む範囲への操作（",{"type":15,"tag":33,"props":1256,"children":1258},{"className":1257},[],[1259],{"type":20,"value":1260},"Range",{"type":20,"value":1237},{"type":15,"tag":16,"props":1263,"children":1264},{},[1265],{"type":20,"value":1266},"これらの例外を処理します：",{"type":15,"tag":141,"props":1268,"children":1270},{"className":143,"code":1269,"language":145,"meta":7,"style":7},"try\n{\n    sheet[\"A1\"] = \"new value\";\n}\ncatch (CellDataReadonlyException ex)\n{\n    Console.WriteLine($\"Cannot modify cell at {ex.CellPos}: cell is read-only\");\n}\ncatch (RangeContainsReadonlyCellsException ex)\n{\n    Console.WriteLine($\"Range {ex.Range} contains read-only cells\");\n}\n",[1271],{"type":15,"tag":33,"props":1272,"children":1273},{"__ignoreMap":7},[1274,1282,1289,1319,1326,1353,1360,1405,1412,1436,1444,1486],{"type":15,"tag":151,"props":1275,"children":1276},{"class":153,"line":154},[1277],{"type":15,"tag":151,"props":1278,"children":1279},{"style":185},[1280],{"type":20,"value":1281},"try\n",{"type":15,"tag":151,"props":1283,"children":1284},{"class":153,"line":164},[1285],{"type":15,"tag":151,"props":1286,"children":1287},{"style":168},[1288],{"type":20,"value":368},{"type":15,"tag":151,"props":1290,"children":1291},{"class":153,"line":196},[1292,1297,1301,1306,1310,1315],{"type":15,"tag":151,"props":1293,"children":1294},{"style":168},[1295],{"type":20,"value":1296},"    sheet[",{"type":15,"tag":151,"props":1298,"children":1299},{"style":174},[1300],{"type":20,"value":177},{"type":15,"tag":151,"props":1302,"children":1303},{"style":168},[1304],{"type":20,"value":1305},"] ",{"type":15,"tag":151,"props":1307,"children":1308},{"style":185},[1309],{"type":20,"value":188},{"type":15,"tag":151,"props":1311,"children":1312},{"style":174},[1313],{"type":20,"value":1314}," \"new value\"",{"type":15,"tag":151,"props":1316,"children":1317},{"style":168},[1318],{"type":20,"value":491},{"type":15,"tag":151,"props":1320,"children":1321},{"class":153,"line":206},[1322],{"type":15,"tag":151,"props":1323,"children":1324},{"style":168},[1325],{"type":20,"value":1164},{"type":15,"tag":151,"props":1327,"children":1328},{"class":153,"line":215},[1329,1334,1339,1343,1348],{"type":15,"tag":151,"props":1330,"children":1331},{"style":185},[1332],{"type":20,"value":1333},"catch",{"type":15,"tag":151,"props":1335,"children":1336},{"style":168},[1337],{"type":20,"value":1338}," (",{"type":15,"tag":151,"props":1340,"children":1341},{"style":308},[1342],{"type":20,"value":1224},{"type":15,"tag":151,"props":1344,"children":1345},{"style":308},[1346],{"type":20,"value":1347}," ex",{"type":15,"tag":151,"props":1349,"children":1350},{"style":168},[1351],{"type":20,"value":1352},")\n",{"type":15,"tag":151,"props":1354,"children":1355},{"class":153,"line":241},[1356],{"type":15,"tag":151,"props":1357,"children":1358},{"style":168},[1359],{"type":20,"value":368},{"type":15,"tag":151,"props":1361,"children":1362},{"class":153,"line":249},[1363,1368,1373,1377,1382,1387,1392,1396,1401],{"type":15,"tag":151,"props":1364,"children":1365},{"style":168},[1366],{"type":20,"value":1367},"    Console.",{"type":15,"tag":151,"props":1369,"children":1370},{"style":308},[1371],{"type":20,"value":1372},"WriteLine",{"type":15,"tag":151,"props":1374,"children":1375},{"style":168},[1376],{"type":20,"value":316},{"type":15,"tag":151,"props":1378,"children":1379},{"style":174},[1380],{"type":20,"value":1381},"$\"Cannot modify cell at {",{"type":15,"tag":151,"props":1383,"children":1384},{"style":168},[1385],{"type":20,"value":1386},"ex",{"type":15,"tag":151,"props":1388,"children":1389},{"style":174},[1390],{"type":20,"value":1391},".",{"type":15,"tag":151,"props":1393,"children":1394},{"style":168},[1395],{"type":20,"value":1235},{"type":15,"tag":151,"props":1397,"children":1398},{"style":174},[1399],{"type":20,"value":1400},"}: cell is read-only\"",{"type":15,"tag":151,"props":1402,"children":1403},{"style":168},[1404],{"type":20,"value":897},{"type":15,"tag":151,"props":1406,"children":1407},{"class":153,"line":258},[1408],{"type":15,"tag":151,"props":1409,"children":1410},{"style":168},[1411],{"type":20,"value":1164},{"type":15,"tag":151,"props":1413,"children":1415},{"class":153,"line":1414},9,[1416,1420,1424,1428,1432],{"type":15,"tag":151,"props":1417,"children":1418},{"style":185},[1419],{"type":20,"value":1333},{"type":15,"tag":151,"props":1421,"children":1422},{"style":168},[1423],{"type":20,"value":1338},{"type":15,"tag":151,"props":1425,"children":1426},{"style":308},[1427],{"type":20,"value":1249},{"type":15,"tag":151,"props":1429,"children":1430},{"style":308},[1431],{"type":20,"value":1347},{"type":15,"tag":151,"props":1433,"children":1434},{"style":168},[1435],{"type":20,"value":1352},{"type":15,"tag":151,"props":1437,"children":1439},{"class":153,"line":1438},10,[1440],{"type":15,"tag":151,"props":1441,"children":1442},{"style":168},[1443],{"type":20,"value":368},{"type":15,"tag":151,"props":1445,"children":1447},{"class":153,"line":1446},11,[1448,1452,1456,1460,1465,1469,1473,1477,1482],{"type":15,"tag":151,"props":1449,"children":1450},{"style":168},[1451],{"type":20,"value":1367},{"type":15,"tag":151,"props":1453,"children":1454},{"style":308},[1455],{"type":20,"value":1372},{"type":15,"tag":151,"props":1457,"children":1458},{"style":168},[1459],{"type":20,"value":316},{"type":15,"tag":151,"props":1461,"children":1462},{"style":174},[1463],{"type":20,"value":1464},"$\"Range {",{"type":15,"tag":151,"props":1466,"children":1467},{"style":168},[1468],{"type":20,"value":1386},{"type":15,"tag":151,"props":1470,"children":1471},{"style":174},[1472],{"type":20,"value":1391},{"type":15,"tag":151,"props":1474,"children":1475},{"style":168},[1476],{"type":20,"value":1260},{"type":15,"tag":151,"props":1478,"children":1479},{"style":174},[1480],{"type":20,"value":1481},"} contains read-only cells\"",{"type":15,"tag":151,"props":1483,"children":1484},{"style":168},[1485],{"type":20,"value":897},{"type":15,"tag":151,"props":1487,"children":1489},{"class":153,"line":1488},12,[1490],{"type":15,"tag":151,"props":1491,"children":1492},{"style":168},[1493],{"type":20,"value":1164},{"type":15,"tag":22,"props":1495,"children":1497},{"id":1496},"よくあるパターン",[1498],{"type":20,"value":1496},{"type":15,"tag":50,"props":1500,"children":1502},{"id":1501},"編集可能な領域を持つテンプレート",[1503],{"type":20,"value":1501},{"type":15,"tag":16,"props":1505,"children":1506},{},[1507],{"type":20,"value":1508},"特定のセルのみが編集可能なフォームテンプレートを作成します：",{"type":15,"tag":141,"props":1510,"children":1512},{"className":143,"code":1511,"language":145,"meta":7,"style":7},"var sheet = grid.CurrentWorksheet;\n\n// Set up the template with labels\nsheet[\"A1\"] = \"Name:\";\nsheet[\"A2\"] = \"Email:\";\nsheet[\"A3\"] = \"Phone:\";\n\n// Make the label cells locked\nsheet.Cells[\"A1\"].IsLocked = CellLock.Locked;\nsheet.Cells[\"A2\"].IsLocked = CellLock.Locked;\nsheet.Cells[\"A3\"].IsLocked = CellLock.Locked;\n\n// Explicitly unlock the input cells\nsheet.Cells[\"B1\"].IsLocked = CellLock.Unlocked;\nsheet.Cells[\"B2\"].IsLocked = CellLock.Unlocked;\nsheet.Cells[\"B3\"].IsLocked = CellLock.Unlocked;\n\n// Lock the worksheet — only B1:B3 remain editable\nsheet.IsLocked = true;\n\n// Optionally auto-move to unlocked cells\nsheet.Options.AlwaysMoveSelectionToUnlockedCell = true;\n",[1513],{"type":15,"tag":33,"props":1514,"children":1515},{"__ignoreMap":7},[1516,1537,1544,1552,1581,1610,1639,1646,1654,1677,1700,1723,1730,1739,1764,1788,1813,1821,1830,1850,1858,1867],{"type":15,"tag":151,"props":1517,"children":1518},{"class":153,"line":154},[1519,1523,1528,1532],{"type":15,"tag":151,"props":1520,"children":1521},{"style":185},[1522],{"type":20,"value":1009},{"type":15,"tag":151,"props":1524,"children":1525},{"style":308},[1526],{"type":20,"value":1527}," sheet",{"type":15,"tag":151,"props":1529,"children":1530},{"style":185},[1531],{"type":20,"value":930},{"type":15,"tag":151,"props":1533,"children":1534},{"style":168},[1535],{"type":20,"value":1536}," grid.CurrentWorksheet;\n",{"type":15,"tag":151,"props":1538,"children":1539},{"class":153,"line":164},[1540],{"type":15,"tag":151,"props":1541,"children":1542},{"emptyLinePlaceholder":200},[1543],{"type":20,"value":203},{"type":15,"tag":151,"props":1545,"children":1546},{"class":153,"line":196},[1547],{"type":15,"tag":151,"props":1548,"children":1549},{"style":158},[1550],{"type":20,"value":1551},"// Set up the template with labels\n",{"type":15,"tag":151,"props":1553,"children":1554},{"class":153,"line":206},[1555,1560,1564,1568,1572,1577],{"type":15,"tag":151,"props":1556,"children":1557},{"style":168},[1558],{"type":20,"value":1559},"sheet[",{"type":15,"tag":151,"props":1561,"children":1562},{"style":174},[1563],{"type":20,"value":177},{"type":15,"tag":151,"props":1565,"children":1566},{"style":168},[1567],{"type":20,"value":1305},{"type":15,"tag":151,"props":1569,"children":1570},{"style":185},[1571],{"type":20,"value":188},{"type":15,"tag":151,"props":1573,"children":1574},{"style":174},[1575],{"type":20,"value":1576}," \"Name:\"",{"type":15,"tag":151,"props":1578,"children":1579},{"style":168},[1580],{"type":20,"value":491},{"type":15,"tag":151,"props":1582,"children":1583},{"class":153,"line":215},[1584,1588,1593,1597,1601,1606],{"type":15,"tag":151,"props":1585,"children":1586},{"style":168},[1587],{"type":20,"value":1559},{"type":15,"tag":151,"props":1589,"children":1590},{"style":174},[1591],{"type":20,"value":1592},"\"A2\"",{"type":15,"tag":151,"props":1594,"children":1595},{"style":168},[1596],{"type":20,"value":1305},{"type":15,"tag":151,"props":1598,"children":1599},{"style":185},[1600],{"type":20,"value":188},{"type":15,"tag":151,"props":1602,"children":1603},{"style":174},[1604],{"type":20,"value":1605}," \"Email:\"",{"type":15,"tag":151,"props":1607,"children":1608},{"style":168},[1609],{"type":20,"value":491},{"type":15,"tag":151,"props":1611,"children":1612},{"class":153,"line":241},[1613,1617,1622,1626,1630,1635],{"type":15,"tag":151,"props":1614,"children":1615},{"style":168},[1616],{"type":20,"value":1559},{"type":15,"tag":151,"props":1618,"children":1619},{"style":174},[1620],{"type":20,"value":1621},"\"A3\"",{"type":15,"tag":151,"props":1623,"children":1624},{"style":168},[1625],{"type":20,"value":1305},{"type":15,"tag":151,"props":1627,"children":1628},{"style":185},[1629],{"type":20,"value":188},{"type":15,"tag":151,"props":1631,"children":1632},{"style":174},[1633],{"type":20,"value":1634}," \"Phone:\"",{"type":15,"tag":151,"props":1636,"children":1637},{"style":168},[1638],{"type":20,"value":491},{"type":15,"tag":151,"props":1640,"children":1641},{"class":153,"line":249},[1642],{"type":15,"tag":151,"props":1643,"children":1644},{"emptyLinePlaceholder":200},[1645],{"type":20,"value":203},{"type":15,"tag":151,"props":1647,"children":1648},{"class":153,"line":258},[1649],{"type":15,"tag":151,"props":1650,"children":1651},{"style":158},[1652],{"type":20,"value":1653},"// Make the label cells locked\n",{"type":15,"tag":151,"props":1655,"children":1656},{"class":153,"line":1414},[1657,1661,1665,1669,1673],{"type":15,"tag":151,"props":1658,"children":1659},{"style":168},[1660],{"type":20,"value":171},{"type":15,"tag":151,"props":1662,"children":1663},{"style":174},[1664],{"type":20,"value":177},{"type":15,"tag":151,"props":1666,"children":1667},{"style":168},[1668],{"type":20,"value":182},{"type":15,"tag":151,"props":1670,"children":1671},{"style":185},[1672],{"type":20,"value":188},{"type":15,"tag":151,"props":1674,"children":1675},{"style":168},[1676],{"type":20,"value":193},{"type":15,"tag":151,"props":1678,"children":1679},{"class":153,"line":1438},[1680,1684,1688,1692,1696],{"type":15,"tag":151,"props":1681,"children":1682},{"style":168},[1683],{"type":20,"value":171},{"type":15,"tag":151,"props":1685,"children":1686},{"style":174},[1687],{"type":20,"value":1592},{"type":15,"tag":151,"props":1689,"children":1690},{"style":168},[1691],{"type":20,"value":182},{"type":15,"tag":151,"props":1693,"children":1694},{"style":185},[1695],{"type":20,"value":188},{"type":15,"tag":151,"props":1697,"children":1698},{"style":168},[1699],{"type":20,"value":193},{"type":15,"tag":151,"props":1701,"children":1702},{"class":153,"line":1446},[1703,1707,1711,1715,1719],{"type":15,"tag":151,"props":1704,"children":1705},{"style":168},[1706],{"type":20,"value":171},{"type":15,"tag":151,"props":1708,"children":1709},{"style":174},[1710],{"type":20,"value":1621},{"type":15,"tag":151,"props":1712,"children":1713},{"style":168},[1714],{"type":20,"value":182},{"type":15,"tag":151,"props":1716,"children":1717},{"style":185},[1718],{"type":20,"value":188},{"type":15,"tag":151,"props":1720,"children":1721},{"style":168},[1722],{"type":20,"value":193},{"type":15,"tag":151,"props":1724,"children":1725},{"class":153,"line":1488},[1726],{"type":15,"tag":151,"props":1727,"children":1728},{"emptyLinePlaceholder":200},[1729],{"type":20,"value":203},{"type":15,"tag":151,"props":1731,"children":1733},{"class":153,"line":1732},13,[1734],{"type":15,"tag":151,"props":1735,"children":1736},{"style":158},[1737],{"type":20,"value":1738},"// Explicitly unlock the input cells\n",{"type":15,"tag":151,"props":1740,"children":1742},{"class":153,"line":1741},14,[1743,1747,1752,1756,1760],{"type":15,"tag":151,"props":1744,"children":1745},{"style":168},[1746],{"type":20,"value":171},{"type":15,"tag":151,"props":1748,"children":1749},{"style":174},[1750],{"type":20,"value":1751},"\"B1\"",{"type":15,"tag":151,"props":1753,"children":1754},{"style":168},[1755],{"type":20,"value":182},{"type":15,"tag":151,"props":1757,"children":1758},{"style":185},[1759],{"type":20,"value":188},{"type":15,"tag":151,"props":1761,"children":1762},{"style":168},[1763],{"type":20,"value":238},{"type":15,"tag":151,"props":1765,"children":1767},{"class":153,"line":1766},15,[1768,1772,1776,1780,1784],{"type":15,"tag":151,"props":1769,"children":1770},{"style":168},[1771],{"type":20,"value":171},{"type":15,"tag":151,"props":1773,"children":1774},{"style":174},[1775],{"type":20,"value":225},{"type":15,"tag":151,"props":1777,"children":1778},{"style":168},[1779],{"type":20,"value":182},{"type":15,"tag":151,"props":1781,"children":1782},{"style":185},[1783],{"type":20,"value":188},{"type":15,"tag":151,"props":1785,"children":1786},{"style":168},[1787],{"type":20,"value":238},{"type":15,"tag":151,"props":1789,"children":1791},{"class":153,"line":1790},16,[1792,1796,1801,1805,1809],{"type":15,"tag":151,"props":1793,"children":1794},{"style":168},[1795],{"type":20,"value":171},{"type":15,"tag":151,"props":1797,"children":1798},{"style":174},[1799],{"type":20,"value":1800},"\"B3\"",{"type":15,"tag":151,"props":1802,"children":1803},{"style":168},[1804],{"type":20,"value":182},{"type":15,"tag":151,"props":1806,"children":1807},{"style":185},[1808],{"type":20,"value":188},{"type":15,"tag":151,"props":1810,"children":1811},{"style":168},[1812],{"type":20,"value":238},{"type":15,"tag":151,"props":1814,"children":1816},{"class":153,"line":1815},17,[1817],{"type":15,"tag":151,"props":1818,"children":1819},{"emptyLinePlaceholder":200},[1820],{"type":20,"value":203},{"type":15,"tag":151,"props":1822,"children":1824},{"class":153,"line":1823},18,[1825],{"type":15,"tag":151,"props":1826,"children":1827},{"style":158},[1828],{"type":20,"value":1829},"// Lock the worksheet — only B1:B3 remain editable\n",{"type":15,"tag":151,"props":1831,"children":1833},{"class":153,"line":1832},19,[1834,1838,1842,1846],{"type":15,"tag":151,"props":1835,"children":1836},{"style":168},[1837],{"type":20,"value":561},{"type":15,"tag":151,"props":1839,"children":1840},{"style":185},[1841],{"type":20,"value":188},{"type":15,"tag":151,"props":1843,"children":1844},{"style":389},[1845],{"type":20,"value":418},{"type":15,"tag":151,"props":1847,"children":1848},{"style":168},[1849],{"type":20,"value":491},{"type":15,"tag":151,"props":1851,"children":1853},{"class":153,"line":1852},20,[1854],{"type":15,"tag":151,"props":1855,"children":1856},{"emptyLinePlaceholder":200},[1857],{"type":20,"value":203},{"type":15,"tag":151,"props":1859,"children":1861},{"class":153,"line":1860},21,[1862],{"type":15,"tag":151,"props":1863,"children":1864},{"style":158},[1865],{"type":20,"value":1866},"// Optionally auto-move to unlocked cells\n",{"type":15,"tag":151,"props":1868,"children":1870},{"class":153,"line":1869},22,[1871,1875,1879,1883],{"type":15,"tag":151,"props":1872,"children":1873},{"style":168},[1874],{"type":20,"value":741},{"type":15,"tag":151,"props":1876,"children":1877},{"style":185},[1878],{"type":20,"value":188},{"type":15,"tag":151,"props":1880,"children":1881},{"style":389},[1882],{"type":20,"value":418},{"type":15,"tag":151,"props":1884,"children":1885},{"style":168},[1886],{"type":20,"value":491},{"type":15,"tag":22,"props":1888,"children":1890},{"id":1889},"関連トピック",[1891],{"type":20,"value":1889},{"type":15,"tag":615,"props":1893,"children":1894},{},[1895,1907,1918],{"type":15,"tag":619,"props":1896,"children":1897},{},[1898,1905],{"type":15,"tag":1899,"props":1900,"children":1902},"a",{"href":1901},"/document/cell/cell-edit/",[1903],{"type":20,"value":1904},"セル編集",{"type":20,"value":1906}," — セルの編集動作",{"type":15,"tag":619,"props":1908,"children":1909},{},[1910,1916],{"type":15,"tag":1899,"props":1911,"children":1913},{"href":1912},"/document/worksheet/settings/",[1914],{"type":20,"value":1915},"ワークシート設定",{"type":20,"value":1917}," — すべてのワークシート設定",{"type":15,"tag":619,"props":1919,"children":1920},{},[1921,1927],{"type":15,"tag":1899,"props":1922,"children":1924},{"href":1923},"/document/data/data-validation/",[1925],{"type":20,"value":1926},"データバリデーション",{"type":20,"value":1928}," — ユーザー入力のバリデーション",{"type":15,"tag":1930,"props":1931,"children":1932},"style",{},[1933],{"type":20,"value":1934},"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":164,"depth":164,"links":1936},[1937,1943,1948,1949,1950,1951,1952,1953,1956],{"id":24,"depth":164,"text":24,"children":1938},[1939,1940,1941,1942],{"id":52,"depth":196,"text":55},{"id":137,"depth":196,"text":137},{"id":283,"depth":196,"text":283},{"id":439,"depth":196,"text":442},{"id":531,"depth":164,"text":531,"children":1944},[1945,1946,1947],{"id":648,"depth":196,"text":648},{"id":685,"depth":196,"text":685},{"id":719,"depth":196,"text":719},{"id":756,"depth":164,"text":756},{"id":848,"depth":164,"text":848},{"id":987,"depth":164,"text":987},{"id":1055,"depth":164,"text":1055},{"id":1167,"depth":164,"text":1167},{"id":1496,"depth":164,"text":1496,"children":1954},[1955],{"id":1501,"depth":196,"text":1501},{"id":1889,"depth":164,"text":1889},"markdown","content:document:5.data:9.protection.md","content","document/5.data/9.protection.md","document/5.data/9.protection","md",{"loc":4},[1965,2287,2290,2293,2296,2299,2302,2305,2308],{"title":1966,"_path":1967,"children":1968},"Document","/document",[1969,1980,1985,2017,2034,2060,2092,2112,2126,2149,2160,2176,2199,2210,2230,2250,2279],{"title":1970,"_path":1971,"children":1972},"はじめに","/document/getting-started",[1973,1974,1977],{"title":1970,"_path":1971},{"title":1975,"_path":1976},"インストール","/document/getting-started/installation",{"title":1978,"_path":1979},"V3 から V4 への移行ガイド","/document/getting-started/migrate-from-v3",{"title":1981,"_path":1982,"children":1983},"ワークブック","/document/workbook",[1984],{"title":1981,"_path":1982},{"title":1986,"_path":1987,"children":1988},"ワークシート","/document/worksheet",[1989,1990,1993,1996,1999,2002,2005,2008,2011,2014],{"title":1986,"_path":1987},{"title":1991,"_path":1992},"行、列、ヘッダー","/document/worksheet/row-and-column",{"title":1994,"_path":1995},"範囲","/document/worksheet/range",{"title":1997,"_path":1998},"名前付き範囲","/document/worksheet/named-range",{"title":2000,"_path":2001},"セルの結合と解除","/document/worksheet/merge-and-unmerge",{"title":2003,"_path":2004},"パーシャルグリッド","/document/worksheet/partial-grid",{"title":2006,"_path":2007},"複数行ヘッダー","/document/worksheet/multiple-row-header",{"title":2009,"_path":2010},"ウィンドウ枠の固定","/document/worksheet/freeze",{"title":2012,"_path":2013},"ズーム","/document/worksheet/zoom",{"title":2015,"_path":2016},"設定とオプション","/document/worksheet/settings",{"title":2018,"_path":2019,"children":2020},"選択とナビゲーション","/document/selection",[2021,2022,2025,2028,2031],{"title":2018,"_path":2019},{"title":2023,"_path":2024},"フォーカスと選択","/document/selection/selection",{"title":2026,"_path":2027},"範囲の選択","/document/selection/pick-range",{"title":2029,"_path":2030},"クリップボード","/document/selection/clipboard",{"title":2032,"_path":2033},"テキスト検索","/document/selection/text-search",{"title":2035,"_path":2036,"children":2037},"データ管理","/document/data",[2038,2039,2042,2045,2048,2051,2054,2057,2059],{"title":2035,"_path":2036},{"title":2040,"_path":2041},"データソース","/document/data/datasource",{"title":2043,"_path":2044},"データフィルタリング","/document/data/data-filtering",{"title":2046,"_path":2047},"組み込みオートフィルター","/document/data/builtin-autofilter",{"title":2049,"_path":2050},"条件付きフィルター","/document/data/conditional-filter",{"title":2052,"_path":2053},"条件付きスタイル","/document/data/conditional-styles",{"title":2055,"_path":2056},"グループとアウトライン","/document/data/group-and-outline",{"title":1926,"_path":2058},"/document/data/data-validation",{"title":8,"_path":4},{"title":2061,"_path":2062,"children":2063},"セル","/document/cell",[2064,2065,2068,2071,2074,2077,2080,2083,2086,2089],{"title":2061,"_path":2062},{"title":2066,"_path":2067},"セルの編集","/document/cell/cell-edit",{"title":2069,"_path":2070},"スタイル","/document/cell/style",{"title":2072,"_path":2073},"罫線","/document/cell/border",{"title":2075,"_path":2076},"データ書式","/document/cell/data-format",{"title":2078,"_path":2079},"カスタムデータフォーマッター","/document/cell/custom-data-formatter",{"title":2081,"_path":2082},"データ連続入力","/document/cell/auto-fill",{"title":2084,"_path":2085},"リッチフォーマットテキスト","/document/cell/rich-format-text",{"title":2087,"_path":2088},"セルテキストの回転","/document/cell/rotate-cell-text",{"title":2090,"_path":2091},"セルの反復処理","/document/cell/iterate-cells",{"title":2093,"_path":2094,"children":2095},"セルタイプ","/document/cell-types",[2096,2097,2100,2103,2106,2109],{"title":2093,"_path":2094},{"title":2098,"_path":2099},"組み込みセルタイプ","/document/cell-types/built-in-cell-types",{"title":2101,"_path":2102},"カスタムセル","/document/cell-types/custom-cell",{"title":2104,"_path":2105},"ドロップダウンリストセル","/document/cell-types/dropdown-list-cell",{"title":2107,"_path":2108},"コンボリストセル","/document/cell-types/combo-list-cell",{"title":2110,"_path":2111},"列全体のセルタイプ","/document/cell-types/cells-type-for-entire-column",{"title":2113,"_path":2114,"children":2115},"数式","/document/formula",[2116,2117,2120,2123],{"title":2113,"_path":2114},{"title":2118,"_path":2119},"カスタム関数","/document/formula/custom-function",{"title":2121,"_path":2122},"数式関数","/document/formula/formula-functions",{"title":2124,"_path":2125},"VLOOKUP","/document/formula/vlookup",{"title":2127,"_path":2128,"children":2129},"チャート","/document/chart",[2130,2131,2134,2137,2140,2143,2146],{"title":2127,"_path":2128},{"title":2132,"_path":2133},"縦棒グラフ","/document/chart/column-chart",{"title":2135,"_path":2136},"横棒グラフ","/document/chart/bar-chart",{"title":2138,"_path":2139},"折れ線グラフ","/document/chart/line-chart",{"title":2141,"_path":2142},"面グラフ","/document/chart/area-chart",{"title":2144,"_path":2145},"2D円グラフ","/document/chart/pie-2d-chart",{"title":2147,"_path":2148},"ドーナツグラフ","/document/chart/doughnut-chart",{"title":2150,"_path":2151,"children":2152},"フローティングオブジェクト","/document/floating",[2153,2154,2157],{"title":2150,"_path":2151},{"title":2155,"_path":2156},"描画シェイプ","/document/floating/drawing-shapes",{"title":2158,"_path":2159},"フローティング画像","/document/floating/floating-image",{"title":2161,"_path":2162,"children":2163},"イベント","/document/events",[2164,2165,2167,2170,2173],{"title":2161,"_path":2162},{"title":2161,"_path":2166},"/document/events/events",{"title":2168,"_path":2169},"キーボードイベント","/document/events/keyboard-events",{"title":2171,"_path":2172},"マウスイベント","/document/events/mouse-events",{"title":2174,"_path":2175},"SelectionRangeChanged","/document/events/selection-events",{"title":2177,"_path":2178,"children":2179},"カスタマイズ","/document/customization",[2180,2181,2184,2187,2190,2193,2196],{"title":2177,"_path":2178},{"title":2182,"_path":2183},"コントロールの外観","/document/customization/control-appearance",{"title":2185,"_path":2186},"シートタブコントロール","/document/customization/sheet-tab-control",{"title":2188,"_path":2189},"使用可能なホットキー","/document/customization/hot-keys",{"title":2191,"_path":2192},"言語ローカライズ","/document/customization/language-localization",{"title":2194,"_path":2195},"アドレスバーと数式バー","/document/customization/formula-bar",{"title":2197,"_path":2198},"ReoGridEditor","/document/customization/editor",{"title":2200,"_path":2201,"children":2202},"アクション","/document/actions",[2203,2204,2207],{"title":2200,"_path":2201},{"title":2205,"_path":2206},"ReoGridアクションフレームワーク","/document/actions/actions",{"title":2208,"_path":2209},"組み込みワークシートアクション","/document/actions/built-in-actions",{"title":2211,"_path":2212,"children":2213},"ファイル形式","/document/io",[2214,2215,2218,2221,2224,2227],{"title":2211,"_path":2212},{"title":2216,"_path":2217},"Excelファイル形式 (xlsx)","/document/io/excel-file-format",{"title":2219,"_path":2220},"CSV形式","/document/io/csv-format",{"title":2222,"_path":2223},"RGF形式","/document/io/rgf-format",{"title":2225,"_path":2226},"Excel形式とRGF形式の違い","/document/io/difference-between-excel-and-rgf-format",{"title":2228,"_path":2229},"HTMLとしてエクスポート","/document/io/export-as-html",{"title":2231,"_path":2232,"children":2233},"高度な機能","/document/advanced",[2234,2235,2238,2241,2244,2247],{"title":2231,"_path":2232},{"title":2236,"_path":2237},"メモリワークブック","/document/advanced/memory-workbook",{"title":2239,"_path":2240},"ページングと印刷","/document/advanced/paging-and-print",{"title":2242,"_path":2243},"コントロールのリセット","/document/advanced/reset-control",{"title":2245,"_path":2246},"パフォーマンス","/document/advanced/performance",{"title":2248,"_path":2249},"設定","/document/advanced/settings",{"title":2251,"_path":2252,"children":2253},"ハウツーガイド","/document/how-to",[2254,2255,2258,2261,2264,2267,2270,2273,2276],{"title":2251,"_path":2252},{"title":2256,"_path":2257},"ReoGridの推奨プラクティス","/document/how-to/recommended-practice-for-using-reogrid",{"title":2259,"_path":2260},"DataTableでスプレッドシートを埋める","/document/how-to/fill-grid-with-datatable",{"title":2262,"_path":2263},"遅延読み込みモードによる大量データの高速読み込み","/document/how-to/fast-load-large-data-with-lazy-load-mode",{"title":2265,"_path":2266},"カスタムドロップダウンセルの作成","/document/how-to/create-custom-drop-down-cell",{"title":2268,"_path":2269},"日付ピッカーセルの作成","/document/how-to/create-date-picker-cell",{"title":2271,"_path":2272},"Excelファイルからすべての画像を読み取る","/document/how-to/read-all-images-from-excel-file",{"title":2274,"_path":2275},"VB.NETでReoGridを使用するためのヒント","/document/how-to/use-reogrid-in-vb-net",{"title":2277,"_path":2278},"全選択チェックボックスヘッダーの作成","/document/how-to/create-select-all-checkbox-header",{"title":2280,"_path":2281,"children":2282},"トラブルシューティング","/document/troubleshooting",[2283,2284],{"title":2280,"_path":2281},{"title":2285,"_path":2286},"PInvoke例外の修正","/document/troubleshooting/fix-pinvoke-exception",{"title":2288,"_path":2289},"エディション・機能一覧","/editions-features",{"title":2291,"_path":2292},"個人情報保護方針","/privacy-policy",{"title":2294,"_path":2295},"動作環境","/requirements",{"title":2297,"_path":2298},"ReoGrid利用許諾契約書","/terms",{"title":2300,"_path":2301},"ReoGrid利用許諾契約書(Ver.3)","/terms-v3",{"title":2303,"_path":2304},"ReoGrid利用許諾契約書(Ver.4)","/terms-v4",{"title":2306,"_path":2307},"ReoGrid 4 トライアルライセンスポリシー","/terms-v4-trial",{"title":2309,"_path":2310},"ReoGrid Web Edition 利用許諾契約書","/terms-web",1786025087373]