[{"data":1,"prerenderedAt":1451},["ShallowReactive",2],{"content-query-lBiSEAl3Af":3,"navigation":1112},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"body":11,"_type":1105,"_id":1106,"_source":1107,"_file":1108,"_stem":1109,"_extension":1110,"sitemap":1111},"/document/how-to/recommended-practice-for-using-reogrid","how-to",false,"","ReoGridの推奨プラクティス","このトピックでは、ReoGridEditorでテンプレートスプレッドシートを作成し、ReoGridコントロールで.NETアプリケーションに表示する一般的なワークフローについて説明します。","2014-05-28",{"type":12,"children":13,"toc":1094},"root",[14,21,28,42,48,59,89,95,114,156,166,172,182,192,198,239,249,255,268,392,403,411,417,427,762,772,777,782,820,825,830,883,1078,1088],{"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},"excelファイルをテンプレートとして使用",[26],{"type":20,"value":27},"Excelファイルをテンプレートとして使用",{"type":15,"tag":16,"props":29,"children":30},{},[31,33,40],{"type":20,"value":32},"ReoGridEditorの代わりにMicrosoft Excelを使用してテンプレートスプレッドシートを作成することもできます。ExcelファイルもReoGridで表示できます。詳細については、",{"type":15,"tag":34,"props":35,"children":37},"a",{"href":36},"/document/io/excel-file-format/",[38],{"type":20,"value":39},"Excelファイル形式",{"type":20,"value":41},"を参照してください。",{"type":15,"tag":22,"props":43,"children":45},{"id":44},"reogrideditorでテンプレートスプレッドシートを作成",[46],{"type":20,"value":47},"ReoGridEditorでテンプレートスプレッドシートを作成",{"type":15,"tag":16,"props":49,"children":50},{},[51,53],{"type":20,"value":52},".NETアプリケーションでReoGridを使用してスプレッドシートを表示する必要がある場合、以下の手順が推奨プラクティスです。\n",{"type":15,"tag":54,"props":55,"children":58},"img",{"alt":56,"src":57},"100","/document/images/1001.png",[],{"type":15,"tag":60,"props":61,"children":62},"ol",{},[63,69,74,79,84],{"type":15,"tag":64,"props":65,"children":66},"li",{},[67],{"type":20,"value":68},"ReoGrid Editorでスプレッドシートテンプレートをデザイン",{"type":15,"tag":64,"props":70,"children":71},{},[72],{"type":20,"value":73},"XMLとして保存",{"type":15,"tag":64,"props":75,"children":76},{},[77],{"type":20,"value":78},"プロジェクトリソースとして追加",{"type":15,"tag":64,"props":80,"children":81},{},[82],{"type":20,"value":83},".NETアプリケーションで読み込み",{"type":15,"tag":64,"props":85,"children":86},{},[87],{"type":20,"value":88},"データを入力",{"type":15,"tag":22,"props":90,"children":92},{"id":91},"_1-reogrid-editorでテンプレートをデザイン",[93],{"type":20,"value":94},"1. ReoGrid Editorでテンプレートをデザイン",{"type":15,"tag":16,"props":96,"children":97},{},[98,100,107,109],{"type":20,"value":99},"リリースパッケージをダウンロードし、",{"type":15,"tag":101,"props":102,"children":104},"code",{"className":103},[],[105],{"type":20,"value":106},"ReoGridEditor.exe",{"type":20,"value":108},"を実行します。\n",{"type":15,"tag":54,"props":110,"children":113},{"alt":111,"src":112},"70","/document/images/70.png",[],{"type":15,"tag":16,"props":115,"children":116},{},[117,119,125,127,133,134,140,141,147,148,154],{"type":20,"value":118},"このエディターを使用して、テキスト、",{"type":15,"tag":34,"props":120,"children":122},{"href":121},"/document/cell/border",[123],{"type":20,"value":124},"罫線",{"type":20,"value":126},"、",{"type":15,"tag":34,"props":128,"children":130},{"href":129},"/document/cell",[131],{"type":20,"value":132},"セルスタイル",{"type":20,"value":126},{"type":15,"tag":34,"props":135,"children":137},{"href":136},"/document/formula/formula-functions",[138],{"type":20,"value":139},"数式",{"type":20,"value":126},{"type":15,"tag":34,"props":142,"children":144},{"href":143},"/document/worksheet/merge-and-unmerge",[145],{"type":20,"value":146},"結合セル",{"type":20,"value":126},{"type":15,"tag":34,"props":149,"children":151},{"href":150},"/document/advanced/paging-and-print",[152],{"type":20,"value":153},"印刷設定",{"type":20,"value":155},"を含むスプレッドシートテンプレートをデザインできます。通常、ReoGridアプリケーション用のテンプレートスプレッドシートを作成するために使用されます。",{"type":15,"tag":16,"props":157,"children":158},{},[159,161],{"type":20,"value":160},"完成したテンプレートの例：\n",{"type":15,"tag":54,"props":162,"children":165},{"alt":163,"src":164},"71","/document/images/71.png",[],{"type":15,"tag":22,"props":167,"children":169},{"id":168},"_2-xmlとして保存",[170],{"type":20,"value":171},"2. XMLとして保存",{"type":15,"tag":16,"props":173,"children":174},{},[175,177],{"type":20,"value":176},"メニューの「File」→「Save」を選択するか、ツールバーの「Save」ボタンを押して、このスプレッドシートをReoGrid XML形式で保存します。\n",{"type":15,"tag":54,"props":178,"children":181},{"alt":179,"src":180},"72","/document/images/72.png",[],{"type":15,"tag":16,"props":183,"children":184},{},[185,187],{"type":20,"value":186},"ファイル名を入力します：\n",{"type":15,"tag":54,"props":188,"children":191},{"alt":189,"src":190},"73","/document/images/73.png",[],{"type":15,"tag":22,"props":193,"children":195},{"id":194},"_3-プロジェクトリソースとして追加",[196],{"type":20,"value":197},"3. プロジェクトリソースとして追加",{"type":15,"tag":60,"props":199,"children":200},{},[201,206,219,229],{"type":15,"tag":64,"props":202,"children":203},{},[204],{"type":20,"value":205},"Visual Studioを開き、新しいプロジェクトを作成するか、既存のプロジェクトを開きます。",{"type":15,"tag":64,"props":207,"children":208},{},[209,211,217],{"type":20,"value":210},"ReoGridへの参照を追加します（",{"type":15,"tag":34,"props":212,"children":214},{"href":213},"/document/getting-started/installation",[215],{"type":20,"value":216},"インストール",{"type":20,"value":218},"を参照）。",{"type":15,"tag":64,"props":220,"children":221},{},[222,224],{"type":20,"value":223},"プロジェクトプロパティウィンドウの「Resource」タブに切り替えます。\n",{"type":15,"tag":54,"props":225,"children":228},{"alt":226,"src":227},"74","/document/images/74.png",[],{"type":15,"tag":64,"props":230,"children":231},{},[232,234],{"type":20,"value":233},"手順2で保存したファイルをリソースリストにドラッグします：\n",{"type":15,"tag":54,"props":235,"children":238},{"alt":236,"src":237},"75","/document/images/75.png",[],{"type":15,"tag":16,"props":240,"children":241},{},[242,244],{"type":20,"value":243},"結果：\n",{"type":15,"tag":54,"props":245,"children":248},{"alt":246,"src":247},"76","/document/images/76.png",[],{"type":15,"tag":22,"props":250,"children":252},{"id":251},"_4-テンプレートファイルの読み込み",[253],{"type":20,"value":254},"4. テンプレートファイルの読み込み",{"type":15,"tag":16,"props":256,"children":257},{},[258,260,266],{"type":20,"value":259},"新しいWindowsフォームを作成し、ReoGridインスタンスを配置します。ReoGridコントロールインスタンスの名前を「grid」に変更し、",{"type":15,"tag":101,"props":261,"children":263},{"className":262},[],[264],{"type":20,"value":265},"Form_Load",{"type":20,"value":267},"イベントに以下のコードを記述します。",{"type":15,"tag":269,"props":270,"children":274},"pre",{"className":271,"code":272,"language":273,"meta":7,"style":7},"language-cs shiki shiki-themes github-light github-dark github-light","using (var ms = new System.IO.MemoryStream(\n  ReoGridTester.Properties.Resources.template))\n{\n  grid.Load(ms, IO.FileFormat.ReoGridFormat);\n}\n","cs",[275],{"type":15,"tag":101,"props":276,"children":277},{"__ignoreMap":7},[278,346,355,364,383],{"type":15,"tag":279,"props":280,"children":283},"span",{"class":281,"line":282},"line",1,[284,290,296,301,307,312,317,322,327,332,336,341],{"type":15,"tag":279,"props":285,"children":287},{"style":286},"--shiki-light:#D73A49;--shiki-dark:#F97583;--shiki-default:#D73A49",[288],{"type":20,"value":289},"using",{"type":15,"tag":279,"props":291,"children":293},{"style":292},"--shiki-light:#24292E;--shiki-dark:#E1E4E8;--shiki-default:#24292E",[294],{"type":20,"value":295}," (",{"type":15,"tag":279,"props":297,"children":298},{"style":286},[299],{"type":20,"value":300},"var",{"type":15,"tag":279,"props":302,"children":304},{"style":303},"--shiki-light:#6F42C1;--shiki-dark:#B392F0;--shiki-default:#6F42C1",[305],{"type":20,"value":306}," ms",{"type":15,"tag":279,"props":308,"children":309},{"style":286},[310],{"type":20,"value":311}," =",{"type":15,"tag":279,"props":313,"children":314},{"style":286},[315],{"type":20,"value":316}," new",{"type":15,"tag":279,"props":318,"children":319},{"style":303},[320],{"type":20,"value":321}," System",{"type":15,"tag":279,"props":323,"children":324},{"style":292},[325],{"type":20,"value":326},".",{"type":15,"tag":279,"props":328,"children":329},{"style":303},[330],{"type":20,"value":331},"IO",{"type":15,"tag":279,"props":333,"children":334},{"style":292},[335],{"type":20,"value":326},{"type":15,"tag":279,"props":337,"children":338},{"style":303},[339],{"type":20,"value":340},"MemoryStream",{"type":15,"tag":279,"props":342,"children":343},{"style":292},[344],{"type":20,"value":345},"(\n",{"type":15,"tag":279,"props":347,"children":349},{"class":281,"line":348},2,[350],{"type":15,"tag":279,"props":351,"children":352},{"style":292},[353],{"type":20,"value":354},"  ReoGridTester.Properties.Resources.template))\n",{"type":15,"tag":279,"props":356,"children":358},{"class":281,"line":357},3,[359],{"type":15,"tag":279,"props":360,"children":361},{"style":292},[362],{"type":20,"value":363},"{\n",{"type":15,"tag":279,"props":365,"children":367},{"class":281,"line":366},4,[368,373,378],{"type":15,"tag":279,"props":369,"children":370},{"style":292},[371],{"type":20,"value":372},"  grid.",{"type":15,"tag":279,"props":374,"children":375},{"style":303},[376],{"type":20,"value":377},"Load",{"type":15,"tag":279,"props":379,"children":380},{"style":292},[381],{"type":20,"value":382},"(ms, IO.FileFormat.ReoGridFormat);\n",{"type":15,"tag":279,"props":384,"children":386},{"class":281,"line":385},5,[387],{"type":15,"tag":279,"props":388,"children":389},{"style":292},[390],{"type":20,"value":391},"}\n",{"type":15,"tag":16,"props":393,"children":394},{},[395,401],{"type":15,"tag":101,"props":396,"children":398},{"className":397},[],[399],{"type":20,"value":400},"grid.Load",{"type":20,"value":402},"メソッドは、リソースバイナリストリームからテンプレートスプレッドシートのすべてのデータを読み取ります。アプリケーションを実行すると、フォームは以下のように表示されます。",{"type":15,"tag":16,"props":404,"children":405},{},[406],{"type":15,"tag":54,"props":407,"children":410},{"alt":408,"src":409},"77","/document/images/77.png",[],{"type":15,"tag":22,"props":412,"children":414},{"id":413},"_5-データを入力",[415],{"type":20,"value":416},"5. データを入力",{"type":15,"tag":16,"props":418,"children":419},{},[420,425],{"type":15,"tag":101,"props":421,"children":423},{"className":422},[],[424],{"type":20,"value":265},{"type":20,"value":426},"イベントにデータを入力するコードを追加します。",{"type":15,"tag":269,"props":428,"children":430},{"className":271,"code":429,"language":273,"meta":7,"style":7},"// get first worksheet instance\nvar sheet = grid.CurrentWorksheet;\n\n// fill records\nsheet[\"B6\"] = new object[,] {\n  { \"ReoGrid\", \"sample\", \"#103, Mars\", \"02/05/2014\", \"No\" },\n  { \"User 1\", \"a@b.c\", \"-\", \"01/01/2014\", \"Yes\" },\n  { \"Guest\", \"no-email\", \"Unknown\", \"01/01/2014\", \"Yes\" }\n};\n\n// fill create time\nsheet[\"E2\"] = \"Create Time: \" + DateTime.Now.ToString(\"MM/dd/yyyy\");\n",[431],{"type":15,"tag":101,"props":432,"children":433},{"__ignoreMap":7},[434,443,464,473,481,519,575,628,680,689,697,706],{"type":15,"tag":279,"props":435,"children":436},{"class":281,"line":282},[437],{"type":15,"tag":279,"props":438,"children":440},{"style":439},"--shiki-light:#6A737D;--shiki-dark:#6A737D;--shiki-default:#6A737D",[441],{"type":20,"value":442},"// get first worksheet instance\n",{"type":15,"tag":279,"props":444,"children":445},{"class":281,"line":348},[446,450,455,459],{"type":15,"tag":279,"props":447,"children":448},{"style":286},[449],{"type":20,"value":300},{"type":15,"tag":279,"props":451,"children":452},{"style":303},[453],{"type":20,"value":454}," sheet",{"type":15,"tag":279,"props":456,"children":457},{"style":286},[458],{"type":20,"value":311},{"type":15,"tag":279,"props":460,"children":461},{"style":292},[462],{"type":20,"value":463}," grid.CurrentWorksheet;\n",{"type":15,"tag":279,"props":465,"children":466},{"class":281,"line":357},[467],{"type":15,"tag":279,"props":468,"children":470},{"emptyLinePlaceholder":469},true,[471],{"type":20,"value":472},"\n",{"type":15,"tag":279,"props":474,"children":475},{"class":281,"line":366},[476],{"type":15,"tag":279,"props":477,"children":478},{"style":439},[479],{"type":20,"value":480},"// fill records\n",{"type":15,"tag":279,"props":482,"children":483},{"class":281,"line":385},[484,489,495,500,505,509,514],{"type":15,"tag":279,"props":485,"children":486},{"style":292},[487],{"type":20,"value":488},"sheet[",{"type":15,"tag":279,"props":490,"children":492},{"style":491},"--shiki-light:#032F62;--shiki-dark:#9ECBFF;--shiki-default:#032F62",[493],{"type":20,"value":494},"\"B6\"",{"type":15,"tag":279,"props":496,"children":497},{"style":292},[498],{"type":20,"value":499},"] ",{"type":15,"tag":279,"props":501,"children":502},{"style":286},[503],{"type":20,"value":504},"=",{"type":15,"tag":279,"props":506,"children":507},{"style":286},[508],{"type":20,"value":316},{"type":15,"tag":279,"props":510,"children":511},{"style":286},[512],{"type":20,"value":513}," object",{"type":15,"tag":279,"props":515,"children":516},{"style":292},[517],{"type":20,"value":518},"[,] {\n",{"type":15,"tag":279,"props":520,"children":522},{"class":281,"line":521},6,[523,528,533,538,543,547,552,556,561,565,570],{"type":15,"tag":279,"props":524,"children":525},{"style":292},[526],{"type":20,"value":527},"  { ",{"type":15,"tag":279,"props":529,"children":530},{"style":491},[531],{"type":20,"value":532},"\"ReoGrid\"",{"type":15,"tag":279,"props":534,"children":535},{"style":292},[536],{"type":20,"value":537},", ",{"type":15,"tag":279,"props":539,"children":540},{"style":491},[541],{"type":20,"value":542},"\"sample\"",{"type":15,"tag":279,"props":544,"children":545},{"style":292},[546],{"type":20,"value":537},{"type":15,"tag":279,"props":548,"children":549},{"style":491},[550],{"type":20,"value":551},"\"#103, Mars\"",{"type":15,"tag":279,"props":553,"children":554},{"style":292},[555],{"type":20,"value":537},{"type":15,"tag":279,"props":557,"children":558},{"style":491},[559],{"type":20,"value":560},"\"02/05/2014\"",{"type":15,"tag":279,"props":562,"children":563},{"style":292},[564],{"type":20,"value":537},{"type":15,"tag":279,"props":566,"children":567},{"style":491},[568],{"type":20,"value":569},"\"No\"",{"type":15,"tag":279,"props":571,"children":572},{"style":292},[573],{"type":20,"value":574}," },\n",{"type":15,"tag":279,"props":576,"children":578},{"class":281,"line":577},7,[579,583,588,592,597,601,606,610,615,619,624],{"type":15,"tag":279,"props":580,"children":581},{"style":292},[582],{"type":20,"value":527},{"type":15,"tag":279,"props":584,"children":585},{"style":491},[586],{"type":20,"value":587},"\"User 1\"",{"type":15,"tag":279,"props":589,"children":590},{"style":292},[591],{"type":20,"value":537},{"type":15,"tag":279,"props":593,"children":594},{"style":491},[595],{"type":20,"value":596},"\"a@b.c\"",{"type":15,"tag":279,"props":598,"children":599},{"style":292},[600],{"type":20,"value":537},{"type":15,"tag":279,"props":602,"children":603},{"style":491},[604],{"type":20,"value":605},"\"-\"",{"type":15,"tag":279,"props":607,"children":608},{"style":292},[609],{"type":20,"value":537},{"type":15,"tag":279,"props":611,"children":612},{"style":491},[613],{"type":20,"value":614},"\"01/01/2014\"",{"type":15,"tag":279,"props":616,"children":617},{"style":292},[618],{"type":20,"value":537},{"type":15,"tag":279,"props":620,"children":621},{"style":491},[622],{"type":20,"value":623},"\"Yes\"",{"type":15,"tag":279,"props":625,"children":626},{"style":292},[627],{"type":20,"value":574},{"type":15,"tag":279,"props":629,"children":631},{"class":281,"line":630},8,[632,636,641,645,650,654,659,663,667,671,675],{"type":15,"tag":279,"props":633,"children":634},{"style":292},[635],{"type":20,"value":527},{"type":15,"tag":279,"props":637,"children":638},{"style":491},[639],{"type":20,"value":640},"\"Guest\"",{"type":15,"tag":279,"props":642,"children":643},{"style":292},[644],{"type":20,"value":537},{"type":15,"tag":279,"props":646,"children":647},{"style":491},[648],{"type":20,"value":649},"\"no-email\"",{"type":15,"tag":279,"props":651,"children":652},{"style":292},[653],{"type":20,"value":537},{"type":15,"tag":279,"props":655,"children":656},{"style":491},[657],{"type":20,"value":658},"\"Unknown\"",{"type":15,"tag":279,"props":660,"children":661},{"style":292},[662],{"type":20,"value":537},{"type":15,"tag":279,"props":664,"children":665},{"style":491},[666],{"type":20,"value":614},{"type":15,"tag":279,"props":668,"children":669},{"style":292},[670],{"type":20,"value":537},{"type":15,"tag":279,"props":672,"children":673},{"style":491},[674],{"type":20,"value":623},{"type":15,"tag":279,"props":676,"children":677},{"style":292},[678],{"type":20,"value":679}," }\n",{"type":15,"tag":279,"props":681,"children":683},{"class":281,"line":682},9,[684],{"type":15,"tag":279,"props":685,"children":686},{"style":292},[687],{"type":20,"value":688},"};\n",{"type":15,"tag":279,"props":690,"children":692},{"class":281,"line":691},10,[693],{"type":15,"tag":279,"props":694,"children":695},{"emptyLinePlaceholder":469},[696],{"type":20,"value":472},{"type":15,"tag":279,"props":698,"children":700},{"class":281,"line":699},11,[701],{"type":15,"tag":279,"props":702,"children":703},{"style":439},[704],{"type":20,"value":705},"// fill create time\n",{"type":15,"tag":279,"props":707,"children":709},{"class":281,"line":708},12,[710,714,719,723,727,732,737,742,747,752,757],{"type":15,"tag":279,"props":711,"children":712},{"style":292},[713],{"type":20,"value":488},{"type":15,"tag":279,"props":715,"children":716},{"style":491},[717],{"type":20,"value":718},"\"E2\"",{"type":15,"tag":279,"props":720,"children":721},{"style":292},[722],{"type":20,"value":499},{"type":15,"tag":279,"props":724,"children":725},{"style":286},[726],{"type":20,"value":504},{"type":15,"tag":279,"props":728,"children":729},{"style":491},[730],{"type":20,"value":731}," \"Create Time: \"",{"type":15,"tag":279,"props":733,"children":734},{"style":286},[735],{"type":20,"value":736}," +",{"type":15,"tag":279,"props":738,"children":739},{"style":292},[740],{"type":20,"value":741}," DateTime.Now.",{"type":15,"tag":279,"props":743,"children":744},{"style":303},[745],{"type":20,"value":746},"ToString",{"type":15,"tag":279,"props":748,"children":749},{"style":292},[750],{"type":20,"value":751},"(",{"type":15,"tag":279,"props":753,"children":754},{"style":491},[755],{"type":20,"value":756},"\"MM/dd/yyyy\"",{"type":15,"tag":279,"props":758,"children":759},{"style":292},[760],{"type":20,"value":761},");\n",{"type":15,"tag":16,"props":763,"children":764},{},[765,767],{"type":20,"value":766},"プログラムを実行します：\n",{"type":15,"tag":54,"props":768,"children":771},{"alt":769,"src":770},"79","/document/images/79.png",[],{"type":15,"tag":22,"props":773,"children":775},{"id":774},"セルの書式設定のプリセット",[776],{"type":20,"value":774},{"type":15,"tag":16,"props":778,"children":779},{},[780],{"type":20,"value":781},"テンプレートファイルでセルのデータ形式を指定できます。",{"type":15,"tag":60,"props":783,"children":784},{},[785,795,805,810],{"type":15,"tag":64,"props":786,"children":787},{},[788,790],{"type":20,"value":789},"エディターを開き、対象のセルまたは範囲を右クリックして「Format Cells...」を選択します。\n",{"type":15,"tag":54,"props":791,"children":794},{"alt":792,"src":793},"80","/document/images/80.png",[],{"type":15,"tag":64,"props":796,"children":797},{},[798,800],{"type":20,"value":799},"「Format」タブを選択し、「DateTime」を選択して、「7/13/1980 12:00 AM」パターンを選択します。\n",{"type":15,"tag":54,"props":801,"children":804},{"alt":802,"src":803},"81","/document/images/81.png",[],{"type":15,"tag":64,"props":806,"children":807},{},[808],{"type":20,"value":809},"「OK」をクリックします。",{"type":15,"tag":64,"props":811,"children":812},{},[813,815],{"type":20,"value":814},"テンプレートを保存します。 5. プロジェクトの埋め込みリソースを更新します。 6. プログラムを実行します。セルは書式設定され、以下のように表示されます：\n",{"type":15,"tag":54,"props":816,"children":819},{"alt":817,"src":818},"82","/document/images/82.png",[],{"type":15,"tag":22,"props":821,"children":823},{"id":822},"名前付き範囲の定義",[824],{"type":20,"value":822},{"type":15,"tag":16,"props":826,"children":827},{},[828],{"type":20,"value":829},"名前付き範囲を定義することは良いプラクティスです。名前付き範囲は、データを入力すべき場所を特定するのに役立ちます。",{"type":15,"tag":60,"props":831,"children":832},{},[833,843,853,863,873,878],{"type":15,"tag":64,"props":834,"children":835},{},[836,838],{"type":20,"value":837},"エディターでスプレッドシート上の範囲を選択します：\n",{"type":15,"tag":54,"props":839,"children":842},{"alt":840,"src":841},"101","/document/images/1011.png",[],{"type":15,"tag":64,"props":844,"children":845},{},[846,848],{"type":20,"value":847},"選択状態のまま、メニューの「Formula」→「Define named range...」を選択します。\n",{"type":15,"tag":54,"props":849,"children":852},{"alt":850,"src":851},"103","/document/images/1031.png",[],{"type":15,"tag":64,"props":854,"children":855},{},[856,858],{"type":20,"value":857},"名前として「mydata」と入力し、「OK」をクリックします。\n",{"type":15,"tag":54,"props":859,"children":862},{"alt":860,"src":861},"104","/document/images/1041.png",[],{"type":15,"tag":64,"props":864,"children":865},{},[866,868],{"type":20,"value":867},"エディターの左上のアドレスフィールドに名前が表示されます。\n",{"type":15,"tag":54,"props":869,"children":872},{"alt":870,"src":871},"105","/document/images/1051.png",[],{"type":15,"tag":64,"props":874,"children":875},{},[876],{"type":20,"value":877},"このテンプレートを保存し、プロジェクトのリソーステンプレートを更新します。",{"type":15,"tag":64,"props":879,"children":880},{},[881],{"type":20,"value":882},"名前付き範囲を使用してデータを入力するようにコードを更新します：",{"type":15,"tag":269,"props":884,"children":886},{"className":271,"code":885,"language":273,"meta":7,"style":7},"// filling data with named range\nsheet[\"mydata\"] = new object[,] {\n  { \"ReoGrid\", \"sample\", \"#103, Mars\", \"02/05/2014\", \"No\" },\n  { \"User 1\", \"a@b.c\", \"-\", \"01/01/2014\", \"Yes\" },\n  { \"Guest\", \"no-email\", \"Unknown\", \"01/01/2014\", \"Yes\" }\n};\n",[887],{"type":15,"tag":101,"props":888,"children":889},{"__ignoreMap":7},[890,898,930,977,1024,1071],{"type":15,"tag":279,"props":891,"children":892},{"class":281,"line":282},[893],{"type":15,"tag":279,"props":894,"children":895},{"style":439},[896],{"type":20,"value":897},"// filling data with named range\n",{"type":15,"tag":279,"props":899,"children":900},{"class":281,"line":348},[901,905,910,914,918,922,926],{"type":15,"tag":279,"props":902,"children":903},{"style":292},[904],{"type":20,"value":488},{"type":15,"tag":279,"props":906,"children":907},{"style":491},[908],{"type":20,"value":909},"\"mydata\"",{"type":15,"tag":279,"props":911,"children":912},{"style":292},[913],{"type":20,"value":499},{"type":15,"tag":279,"props":915,"children":916},{"style":286},[917],{"type":20,"value":504},{"type":15,"tag":279,"props":919,"children":920},{"style":286},[921],{"type":20,"value":316},{"type":15,"tag":279,"props":923,"children":924},{"style":286},[925],{"type":20,"value":513},{"type":15,"tag":279,"props":927,"children":928},{"style":292},[929],{"type":20,"value":518},{"type":15,"tag":279,"props":931,"children":932},{"class":281,"line":357},[933,937,941,945,949,953,957,961,965,969,973],{"type":15,"tag":279,"props":934,"children":935},{"style":292},[936],{"type":20,"value":527},{"type":15,"tag":279,"props":938,"children":939},{"style":491},[940],{"type":20,"value":532},{"type":15,"tag":279,"props":942,"children":943},{"style":292},[944],{"type":20,"value":537},{"type":15,"tag":279,"props":946,"children":947},{"style":491},[948],{"type":20,"value":542},{"type":15,"tag":279,"props":950,"children":951},{"style":292},[952],{"type":20,"value":537},{"type":15,"tag":279,"props":954,"children":955},{"style":491},[956],{"type":20,"value":551},{"type":15,"tag":279,"props":958,"children":959},{"style":292},[960],{"type":20,"value":537},{"type":15,"tag":279,"props":962,"children":963},{"style":491},[964],{"type":20,"value":560},{"type":15,"tag":279,"props":966,"children":967},{"style":292},[968],{"type":20,"value":537},{"type":15,"tag":279,"props":970,"children":971},{"style":491},[972],{"type":20,"value":569},{"type":15,"tag":279,"props":974,"children":975},{"style":292},[976],{"type":20,"value":574},{"type":15,"tag":279,"props":978,"children":979},{"class":281,"line":366},[980,984,988,992,996,1000,1004,1008,1012,1016,1020],{"type":15,"tag":279,"props":981,"children":982},{"style":292},[983],{"type":20,"value":527},{"type":15,"tag":279,"props":985,"children":986},{"style":491},[987],{"type":20,"value":587},{"type":15,"tag":279,"props":989,"children":990},{"style":292},[991],{"type":20,"value":537},{"type":15,"tag":279,"props":993,"children":994},{"style":491},[995],{"type":20,"value":596},{"type":15,"tag":279,"props":997,"children":998},{"style":292},[999],{"type":20,"value":537},{"type":15,"tag":279,"props":1001,"children":1002},{"style":491},[1003],{"type":20,"value":605},{"type":15,"tag":279,"props":1005,"children":1006},{"style":292},[1007],{"type":20,"value":537},{"type":15,"tag":279,"props":1009,"children":1010},{"style":491},[1011],{"type":20,"value":614},{"type":15,"tag":279,"props":1013,"children":1014},{"style":292},[1015],{"type":20,"value":537},{"type":15,"tag":279,"props":1017,"children":1018},{"style":491},[1019],{"type":20,"value":623},{"type":15,"tag":279,"props":1021,"children":1022},{"style":292},[1023],{"type":20,"value":574},{"type":15,"tag":279,"props":1025,"children":1026},{"class":281,"line":385},[1027,1031,1035,1039,1043,1047,1051,1055,1059,1063,1067],{"type":15,"tag":279,"props":1028,"children":1029},{"style":292},[1030],{"type":20,"value":527},{"type":15,"tag":279,"props":1032,"children":1033},{"style":491},[1034],{"type":20,"value":640},{"type":15,"tag":279,"props":1036,"children":1037},{"style":292},[1038],{"type":20,"value":537},{"type":15,"tag":279,"props":1040,"children":1041},{"style":491},[1042],{"type":20,"value":649},{"type":15,"tag":279,"props":1044,"children":1045},{"style":292},[1046],{"type":20,"value":537},{"type":15,"tag":279,"props":1048,"children":1049},{"style":491},[1050],{"type":20,"value":658},{"type":15,"tag":279,"props":1052,"children":1053},{"style":292},[1054],{"type":20,"value":537},{"type":15,"tag":279,"props":1056,"children":1057},{"style":491},[1058],{"type":20,"value":614},{"type":15,"tag":279,"props":1060,"children":1061},{"style":292},[1062],{"type":20,"value":537},{"type":15,"tag":279,"props":1064,"children":1065},{"style":491},[1066],{"type":20,"value":623},{"type":15,"tag":279,"props":1068,"children":1069},{"style":292},[1070],{"type":20,"value":679},{"type":15,"tag":279,"props":1072,"children":1073},{"class":281,"line":521},[1074],{"type":15,"tag":279,"props":1075,"children":1076},{"style":292},[1077],{"type":20,"value":688},{"type":15,"tag":16,"props":1079,"children":1080},{},[1081,1083],{"type":20,"value":1082},"スプレッドシートは以下のように表示されます： ",{"type":15,"tag":54,"props":1084,"children":1087},{"alt":1085,"src":1086},"106","/document/images/1061.png",[],{"type":15,"tag":1089,"props":1090,"children":1091},"style",{},[1092],{"type":20,"value":1093},"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":348,"depth":348,"links":1095},[1096,1097,1098,1099,1100,1101,1102,1103,1104],{"id":24,"depth":348,"text":27},{"id":44,"depth":348,"text":47},{"id":91,"depth":348,"text":94},{"id":168,"depth":348,"text":171},{"id":194,"depth":348,"text":197},{"id":251,"depth":348,"text":254},{"id":413,"depth":348,"text":416},{"id":774,"depth":348,"text":774},{"id":822,"depth":348,"text":822},"markdown","content:document:16.how-to:2.recommended-practice-for-using-reogrid.md","content","document/16.how-to/2.recommended-practice-for-using-reogrid.md","document/16.how-to/2.recommended-practice-for-using-reogrid","md",{"loc":4},[1113,1427,1430,1433,1436,1439,1442,1445,1448],{"title":1114,"_path":1115,"children":1116},"Document","/document",[1117,1126,1131,1162,1179,1208,1237,1257,1269,1292,1303,1319,1342,1353,1373,1392,1419],{"title":1118,"_path":1119,"children":1120},"はじめに","/document/getting-started",[1121,1122,1123],{"title":1118,"_path":1119},{"title":216,"_path":213},{"title":1124,"_path":1125},"V3 から V4 への移行ガイド","/document/getting-started/migrate-from-v3",{"title":1127,"_path":1128,"children":1129},"ワークブック","/document/workbook",[1130],{"title":1127,"_path":1128},{"title":1132,"_path":1133,"children":1134},"ワークシート","/document/worksheet",[1135,1136,1139,1142,1145,1147,1150,1153,1156,1159],{"title":1132,"_path":1133},{"title":1137,"_path":1138},"行、列、ヘッダー","/document/worksheet/row-and-column",{"title":1140,"_path":1141},"範囲","/document/worksheet/range",{"title":1143,"_path":1144},"名前付き範囲","/document/worksheet/named-range",{"title":1146,"_path":143},"セルの結合と解除",{"title":1148,"_path":1149},"パーシャルグリッド","/document/worksheet/partial-grid",{"title":1151,"_path":1152},"複数行ヘッダー","/document/worksheet/multiple-row-header",{"title":1154,"_path":1155},"ウィンドウ枠の固定","/document/worksheet/freeze",{"title":1157,"_path":1158},"ズーム","/document/worksheet/zoom",{"title":1160,"_path":1161},"設定とオプション","/document/worksheet/settings",{"title":1163,"_path":1164,"children":1165},"選択とナビゲーション","/document/selection",[1166,1167,1170,1173,1176],{"title":1163,"_path":1164},{"title":1168,"_path":1169},"フォーカスと選択","/document/selection/selection",{"title":1171,"_path":1172},"範囲の選択","/document/selection/pick-range",{"title":1174,"_path":1175},"クリップボード","/document/selection/clipboard",{"title":1177,"_path":1178},"テキスト検索","/document/selection/text-search",{"title":1180,"_path":1181,"children":1182},"データ管理","/document/data",[1183,1184,1187,1190,1193,1196,1199,1202,1205],{"title":1180,"_path":1181},{"title":1185,"_path":1186},"データソース","/document/data/datasource",{"title":1188,"_path":1189},"データフィルタリング","/document/data/data-filtering",{"title":1191,"_path":1192},"組み込みオートフィルター","/document/data/builtin-autofilter",{"title":1194,"_path":1195},"条件付きフィルター","/document/data/conditional-filter",{"title":1197,"_path":1198},"条件付きスタイル","/document/data/conditional-styles",{"title":1200,"_path":1201},"グループとアウトライン","/document/data/group-and-outline",{"title":1203,"_path":1204},"データバリデーション","/document/data/data-validation",{"title":1206,"_path":1207},"保護とロック","/document/data/protection",{"title":1209,"_path":129,"children":1210},"セル",[1211,1212,1215,1218,1219,1222,1225,1228,1231,1234],{"title":1209,"_path":129},{"title":1213,"_path":1214},"セルの編集","/document/cell/cell-edit",{"title":1216,"_path":1217},"スタイル","/document/cell/style",{"title":124,"_path":121},{"title":1220,"_path":1221},"データ書式","/document/cell/data-format",{"title":1223,"_path":1224},"カスタムデータフォーマッター","/document/cell/custom-data-formatter",{"title":1226,"_path":1227},"データ連続入力","/document/cell/auto-fill",{"title":1229,"_path":1230},"リッチフォーマットテキスト","/document/cell/rich-format-text",{"title":1232,"_path":1233},"セルテキストの回転","/document/cell/rotate-cell-text",{"title":1235,"_path":1236},"セルの反復処理","/document/cell/iterate-cells",{"title":1238,"_path":1239,"children":1240},"セルタイプ","/document/cell-types",[1241,1242,1245,1248,1251,1254],{"title":1238,"_path":1239},{"title":1243,"_path":1244},"組み込みセルタイプ","/document/cell-types/built-in-cell-types",{"title":1246,"_path":1247},"カスタムセル","/document/cell-types/custom-cell",{"title":1249,"_path":1250},"ドロップダウンリストセル","/document/cell-types/dropdown-list-cell",{"title":1252,"_path":1253},"コンボリストセル","/document/cell-types/combo-list-cell",{"title":1255,"_path":1256},"列全体のセルタイプ","/document/cell-types/cells-type-for-entire-column",{"title":139,"_path":1258,"children":1259},"/document/formula",[1260,1261,1264,1266],{"title":139,"_path":1258},{"title":1262,"_path":1263},"カスタム関数","/document/formula/custom-function",{"title":1265,"_path":136},"数式関数",{"title":1267,"_path":1268},"VLOOKUP","/document/formula/vlookup",{"title":1270,"_path":1271,"children":1272},"チャート","/document/chart",[1273,1274,1277,1280,1283,1286,1289],{"title":1270,"_path":1271},{"title":1275,"_path":1276},"縦棒グラフ","/document/chart/column-chart",{"title":1278,"_path":1279},"横棒グラフ","/document/chart/bar-chart",{"title":1281,"_path":1282},"折れ線グラフ","/document/chart/line-chart",{"title":1284,"_path":1285},"面グラフ","/document/chart/area-chart",{"title":1287,"_path":1288},"2D円グラフ","/document/chart/pie-2d-chart",{"title":1290,"_path":1291},"ドーナツグラフ","/document/chart/doughnut-chart",{"title":1293,"_path":1294,"children":1295},"フローティングオブジェクト","/document/floating",[1296,1297,1300],{"title":1293,"_path":1294},{"title":1298,"_path":1299},"描画シェイプ","/document/floating/drawing-shapes",{"title":1301,"_path":1302},"フローティング画像","/document/floating/floating-image",{"title":1304,"_path":1305,"children":1306},"イベント","/document/events",[1307,1308,1310,1313,1316],{"title":1304,"_path":1305},{"title":1304,"_path":1309},"/document/events/events",{"title":1311,"_path":1312},"キーボードイベント","/document/events/keyboard-events",{"title":1314,"_path":1315},"マウスイベント","/document/events/mouse-events",{"title":1317,"_path":1318},"SelectionRangeChanged","/document/events/selection-events",{"title":1320,"_path":1321,"children":1322},"カスタマイズ","/document/customization",[1323,1324,1327,1330,1333,1336,1339],{"title":1320,"_path":1321},{"title":1325,"_path":1326},"コントロールの外観","/document/customization/control-appearance",{"title":1328,"_path":1329},"シートタブコントロール","/document/customization/sheet-tab-control",{"title":1331,"_path":1332},"使用可能なホットキー","/document/customization/hot-keys",{"title":1334,"_path":1335},"言語ローカライズ","/document/customization/language-localization",{"title":1337,"_path":1338},"アドレスバーと数式バー","/document/customization/formula-bar",{"title":1340,"_path":1341},"ReoGridEditor","/document/customization/editor",{"title":1343,"_path":1344,"children":1345},"アクション","/document/actions",[1346,1347,1350],{"title":1343,"_path":1344},{"title":1348,"_path":1349},"ReoGridアクションフレームワーク","/document/actions/actions",{"title":1351,"_path":1352},"組み込みワークシートアクション","/document/actions/built-in-actions",{"title":1354,"_path":1355,"children":1356},"ファイル形式","/document/io",[1357,1358,1361,1364,1367,1370],{"title":1354,"_path":1355},{"title":1359,"_path":1360},"Excelファイル形式 (xlsx)","/document/io/excel-file-format",{"title":1362,"_path":1363},"CSV形式","/document/io/csv-format",{"title":1365,"_path":1366},"RGF形式","/document/io/rgf-format",{"title":1368,"_path":1369},"Excel形式とRGF形式の違い","/document/io/difference-between-excel-and-rgf-format",{"title":1371,"_path":1372},"HTMLとしてエクスポート","/document/io/export-as-html",{"title":1374,"_path":1375,"children":1376},"高度な機能","/document/advanced",[1377,1378,1381,1383,1386,1389],{"title":1374,"_path":1375},{"title":1379,"_path":1380},"メモリワークブック","/document/advanced/memory-workbook",{"title":1382,"_path":150},"ページングと印刷",{"title":1384,"_path":1385},"コントロールのリセット","/document/advanced/reset-control",{"title":1387,"_path":1388},"パフォーマンス","/document/advanced/performance",{"title":1390,"_path":1391},"設定","/document/advanced/settings",{"title":1393,"_path":1394,"children":1395},"ハウツーガイド","/document/how-to",[1396,1397,1398,1401,1404,1407,1410,1413,1416],{"title":1393,"_path":1394},{"title":8,"_path":4},{"title":1399,"_path":1400},"DataTableでスプレッドシートを埋める","/document/how-to/fill-grid-with-datatable",{"title":1402,"_path":1403},"遅延読み込みモードによる大量データの高速読み込み","/document/how-to/fast-load-large-data-with-lazy-load-mode",{"title":1405,"_path":1406},"カスタムドロップダウンセルの作成","/document/how-to/create-custom-drop-down-cell",{"title":1408,"_path":1409},"日付ピッカーセルの作成","/document/how-to/create-date-picker-cell",{"title":1411,"_path":1412},"Excelファイルからすべての画像を読み取る","/document/how-to/read-all-images-from-excel-file",{"title":1414,"_path":1415},"VB.NETでReoGridを使用するためのヒント","/document/how-to/use-reogrid-in-vb-net",{"title":1417,"_path":1418},"全選択チェックボックスヘッダーの作成","/document/how-to/create-select-all-checkbox-header",{"title":1420,"_path":1421,"children":1422},"トラブルシューティング","/document/troubleshooting",[1423,1424],{"title":1420,"_path":1421},{"title":1425,"_path":1426},"PInvoke例外の修正","/document/troubleshooting/fix-pinvoke-exception",{"title":1428,"_path":1429},"エディション・機能一覧","/editions-features",{"title":1431,"_path":1432},"個人情報保護方針","/privacy-policy",{"title":1434,"_path":1435},"動作環境","/requirements",{"title":1437,"_path":1438},"ReoGrid利用許諾契約書","/terms",{"title":1440,"_path":1441},"ReoGrid利用許諾契約書(Ver.3)","/terms-v3",{"title":1443,"_path":1444},"ReoGrid利用許諾契約書(Ver.4)","/terms-v4",{"title":1446,"_path":1447},"ReoGrid 4 トライアルライセンスポリシー","/terms-v4-trial",{"title":1449,"_path":1450},"ReoGrid Web Edition 利用許諾契約書","/terms-web",1786025059113]