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