VB 活动添加item元素

        '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
下面能够控制列元素对应的文本的居中式样

  

posted on 2015-04-08 10:45  手撕高达的村长  阅读(419)  评论(0编辑  收藏  举报

导航