{"id":2055,"date":"2023-04-01T21:20:43","date_gmt":"2023-04-01T13:20:43","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=2055"},"modified":"2023-04-07T06:05:31","modified_gmt":"2023-04-06T22:05:31","slug":"csharp-listview-operation","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/04\/01\/csharp-listview-operation\/","title":{"rendered":"CSharp ListView\u64cd\u4f5c"},"content":{"rendered":"<pre><code class=\"language-csharp\">listView.Columns.Add(&quot;\u6570\u636e\u91cf&quot;);  \/\/\u6dfb\u52a0\u5217\nlistView.Columns.Add(&quot;\u6570\u636e\u503c&quot;);  \/\/\u6dfb\u52a0\u5217\nlistView.Font = new Font(&quot;\u5fae\u8f6f\u96c5\u9ed1&quot;, 10, FontStyle.Regular);\nlistView.View = View.Details; \/\/\u663e\u793a\u5217\u53ca\u5217\u540d\nlistView.Columns[0].Width = 180;\nlistView.Columns[1].Width = 120;\n\nlistView.Items.Add(&quot;\u5e74&quot;);  \/\/\u6dfb\u52a0\u5217\nlistView.Items[0].SubItems.Add(&quot;2016&quot;);  \/\/\u6dfb\u52a0\u5b50\u5217\nlistView.Items[0].SubItems[0].Text = &quot;2017&quot;;  \/\/\u4fee\u6539\u5b50\u5217\uff08\u5b50\u5217\u7d22\u5f15\u4ece\u96f6\u5f00\u59cb\uff0c\u5373\u7b2c2\u5217\uff0c\u7b2c1\u5217\u4e3a\u4e3b\u5217\uff09<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>listView.Columns.Add(&quot;\u6570\u636e\u91cf&quot;); \/\/\u6dfb\u52a0\u5217 listView.C [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[518],"tags":[],"class_list":["post-2055","post","type-post","status-publish","format-standard","hentry","category-csharp"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2055"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2055\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}