{"id":548,"date":"2016-07-03T16:44:59","date_gmt":"2016-07-03T07:44:59","guid":{"rendered":"https:\/\/prg.waou.biz\/?p=548"},"modified":"2018-03-03T08:53:42","modified_gmt":"2018-03-02T23:53:42","slug":"%e9%80%a3%e7%95%aa%e3%82%bb%e3%83%ab%e7%ad%89","status":"publish","type":"post","link":"https:\/\/prg.waou.biz\/?p=548","title":{"rendered":"\u9023\u756a\u30bb\u30eb\u7b49"},"content":{"rendered":"<p>\uff11\uff09\u884c\u756a\u53f7\u306e\u81ea\u52d5\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u306b\u3064\u3044\u3066<\/p>\n<p>RowHeaderCell\u30af\u30e9\u30b9\u306eValueFormat\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u300c\u884c\u756a\u53f7\u306e\u8868\u793a\u300d<br \/>\n\u6a5f\u80fd\u3092\u4f7f\u3046\u3053\u3068\u3067\u3054\u5e0c\u671b\u306e\u52d5\u4f5c\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001<br \/>\n\u4e0b\u8a18\u306e\u30d8\u30eb\u30d7\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u307e\u3059\u3088\u3046\u304a\u9858\u3044\u7533\u3057\u4e0a\u3052\u307e\u3059\u3002<\/p>\n<p>\u3010\u88fd\u54c1\u30d8\u30eb\u30d7 \u76ee\u6b21\u3011<br \/>\nMultiRow for Windows Forms 7.0J<br \/>\n\uff0bMultiRow \u306e\u4f7f\u3044\u65b9<br \/>\n\uff0b\u30bb\u30eb\u578b<br \/>\n\uff0b\u884c\u30d8\u30c3\u30c0\u578b\u30bb\u30eb (RowHeaderCell)<\/p>\n<p>\u306a\u304a\u3001\u305d\u306e\u4ed6\u306e\u30bb\u30eb\u578b\u3067\u9023\u756a\u3092\u8868\u793a\u3059\u308b\u6a5f\u80fd\u306f\u3054\u3056\u3044\u307e\u305b\u3093\u306e\u3067\u3001<br \/>\n\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u307e\u3059\u3088\u3046\u304a\u9858\u3044\u7533\u3057\u4e0a\u3052\u307e\u3059\u3002<\/p>\n<p>\uff08\uff12\uff09\u3000\u4efb\u610f\u306e\u5217\u5e45\u306e\u81ea\u52d5\u8abf\u7bc0\u306b\u3064\u3044\u3066<\/p>\n<p>\u8aa0\u306b\u6050\u7e2e\u3067\u306f\u3054\u3056\u3044\u307e\u3059\u304c\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u5e45\u306b\u5408\u308f\u305b\u3066\u81ea\u52d5\u7684\u306b<br \/>\n\u5217\u5e45\u3092\u8abf\u7bc0\u3067\u304d\u308b\u306e\u306f\u3001\u672b\u5c3e\u306e\u5217\u306b\u9650\u5b9a\u3055\u308c\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4efb\u610f\u306e\u5217\u306e\u5e45\u3092\u8abf\u7bc0\u3059\u308b\u306b\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30b5\u30a4\u30ba\u5909\u66f4\u3092\u691c\u51fa\u3057\u3001<br \/>\n\u72ec\u81ea\u306b\u5217\u5e45\u3092\u5909\u66f4\u3059\u308b\u3088\u3046\u306b\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001<br \/>\n\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u307e\u3059\u3088\u3046\u304a\u9858\u3044\u7533\u3057\u4e0a\u3052\u307e\u3059\u3002<\/p>\n<p>\uff08\uff13\uff09\u3000MultiRow\u306eTag\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3064\u3044\u3066<\/p>\n<p>Tag\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u6a19\u6e96\u306eControl\u30af\u30e9\u30b9\u306e\u6a5f\u80fd\u3067\u3059\u304c\u3001MultiRow\u3067\u3082<br \/>\n\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n<p>\uff08\uff14\uff09\u3000DLL\u306e\u914d\u7f6e\u306b\u3064\u3044\u3066<\/p>\n<p>MultiRow\u3092\u69cb\u6210\u3059\u308b\u5f0a\u793e\u88fd\u54c1\u306eDLL\u3092\u542b\u3080.NET Framework\u306eDLL\u306f\u3001<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u4efb\u610f\u306e\u30d5\u30a9\u30eb\u30c0\u306b<br \/>\n\u914d\u7f6e\u3057\u3066\u3001\u305d\u308c\u3092EXE\u304b\u3089\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001MSDN\u3092\u3054\u53c2\u7167\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u5b58\u3058\u307e\u3059\u3002<\/p>\n<p>\uff08\uff15\uff09\u3000\u30bb\u30eb\u306e\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u64cd\u4f5c\u306b\u3088\u308b\u30b3\u30d4\u30fc\u306b\u3064\u3044\u3066<\/p>\n<p>\u6a19\u6e96\u306eControl\u30af\u30e9\u30b9\u306e\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u6a5f\u80fd\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30de\u30a6\u30b9\u64cd\u4f5c\u306b<br \/>\n\u3088\u308b\u30bb\u30eb\u306e\u5024\u306e\u30b3\u30d4\u30fc\u3092\u5b9f\u73fe\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u3054\u53c2\u8003\u306b\u3057\u3066\u3044\u305f\u3060\u3051\u307e\u3059\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3010\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3011<\/p>\n<pre class=\"lang:default decode:true \" >\r\nusing System;\r\nusing System.Collections.Generic;\r\nusing System.ComponentModel;\r\nusing System.Data;\r\nusing System.Drawing;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Windows.Forms;\r\nusing GrapeCity.Win.MultiRow;\r\n\r\nnamespace M160626001\r\n{\r\npublic partial class Form1 : Form\r\n{\r\nprivate Point pos;\r\n\r\npublic Form1()\r\n{\r\nInitializeComponent();\r\n\r\n\/\/ \u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d\r\nthis.Text = gcMultiRow1.ProductVersion;\r\n\r\n\/\/ \u30a4\u30d9\u30f3\u30c8\u306e\u8a2d\u5b9a\r\ngcMultiRow1.MouseDown += new MouseEventHandler(gcMultiRow1_MouseDown);\r\ngcMultiRow1.MouseMove += new MouseEventHandler(gcMultiRow1_MouseMove);\r\ngcMultiRow1.DragOver += new DragEventHandler(gcMultiRow1_DragOver);\r\ngcMultiRow1.DragDrop += new DragEventHandler(gcMultiRow1_DragDrop);\r\n}\r\n\r\nprivate void Form1_Load(object sender, EventArgs e)\r\n{\r\n\/\/ \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4f5c\u6210\r\nTemplate template1 = Template.CreateGridTemplate(2);\r\n(template1.Row.Cells[\"rowHeaderCell1\"] as RowHeaderCell).ValueFormat = \"%1%\";\r\n\r\n\/\/ MultiRow\u306e\u8a2d\u5b9a\r\ngcMultiRow1.AllowDrop = true;\r\ngcMultiRow1.Template = template1;\r\ngcMultiRow1.RowCount = 5;\r\nfor (var i = 0; i &lt; gcMultiRow1.RowCount; i++)\r\n{\r\ngcMultiRow1.SetValue(i, 0, string.Format(\"A{0}\", i));\r\ngcMultiRow1.SetValue(i, 1, string.Format(\"B{0}\", i));\r\n}\r\n}\r\n\r\nvoid gcMultiRow1_MouseDown(object sender, MouseEventArgs e)\r\n{\r\n\/\/ Drag&amp;Drop\u958b\u59cb\u306e\u6e96\u5099\r\nif (e.Button == System.Windows.Forms.MouseButtons.Left)\r\n{\r\npos = e.Location;\r\npos.Offset(-SystemInformation.DragSize.Width \/ 2, -SystemInformation.DragSize.Height \/ 2);\r\n}\r\n}\r\n\r\nvoid gcMultiRow1_MouseMove(object sender, MouseEventArgs e)\r\n{\r\n\/\/ Drag&amp;Drop\u306e\u958b\u59cb\r\nif (e.Button == System.Windows.Forms.MouseButtons.Left)\r\n{\r\nRectangle rect = new Rectangle(pos, SystemInformation.DragSize);\r\nif (rect.Contains(e.Location))\r\n{\r\nHitTestInfo htInfo = (sender as GcMultiRow).HitTest(e.Location);\r\nif (htInfo.Type == HitTestType.Row)\r\n{\r\n(sender as GcMultiRow).DoDragDrop((sender as GcMultiRow).GetValue(htInfo.SectionIndex, htInfo.CellIndex), DragDropEffects.Copy);\r\n}\r\n}\r\n}\r\n}\r\n\r\nvoid gcMultiRow1_DragOver(object sender, DragEventArgs e)\r\n{\r\n\/\/ Drag&amp;Drop\u306e\u8a31\u53ef\r\ne.Effect = DragDropEffects.Copy;\r\n}\r\n\r\nvoid gcMultiRow1_DragDrop(object sender, DragEventArgs e)\r\n{\r\n\/\/ Drag&amp;Drop\u51e6\u7406\r\nHitTestInfo htInfo = (sender as GcMultiRow).HitTest((sender as GcMultiRow).PointToClient(new Point(e.X, e.Y)));\r\nif (htInfo.Type == HitTestType.Row)\r\n{\r\n(sender as GcMultiRow).SetValue(htInfo.SectionIndex, htInfo.CellIndex, e.Data.GetData(DataFormats.Text));\r\n}\r\n}\r\n}\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uff11\uff09\u884c\u756a\u53f7\u306e\u81ea\u52d5\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u306b\u3064\u3044\u3066 RowHeaderCell\u30af\u30e9\u30b9\u306eValueFormat\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u300c\u884c\u756a\u53f7\u306e\u8868\u793a\u300d \u6a5f\u80fd\u3092\u4f7f\u3046\u3053\u3068\u3067\u3054\u5e0c\u671b\u306e\u52d5\u4f5c\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001 \u4e0b\u8a18\u306e\u30d8\u30eb\u30d7\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","_lightning_design_setting":[],"footnotes":""},"categories":[12],"tags":[],"class_list":["post-548","post","type-post","status-publish","format-standard","hentry","category-multirow"],"_links":{"self":[{"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts\/548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=548"}],"version-history":[{"count":3,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts\/548\/revisions"}],"predecessor-version":[{"id":857,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts\/548\/revisions\/857"}],"wp:attachment":[{"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}