‘ListView1.Columns.Clear() ‘ListView1.Columns.Add("", 0, HorizontalAlignment.Center) ‘ListView1.Columns.Add("顧客CD", 100, HorizontalAlignment.Center) ‘ListView1.Columns.Add(" 顧客名", 280, HorizontalAlignment.Center) ‘ListView1.Columns.Add("作業人数", 110, HorizontalAlignment.Center) ‘ListView1.Columns.Add("最終作業日", 90, HorizontalAlignment.Center) 上面能够添加列元素 ‘ListView1.Columns(0).TextAlign = HorizontalAlignment.Center ‘ListView1.Columns(1).TextAlign = HorizontalAlignment.Center ‘ListView1.Columns(2).TextAlign = HorizontalAlignment.Left ‘ListView1.Columns(3).TextAlign = HorizontalAlignment.Center ‘ListView1.Columns(4).TextAlign = HorizontalAlignment.Center 下面能够控制列元素对应的文本的居中式样
时间: 2024-10-13 04:40:19