各位老师:我想定义一个百分比的新样式,请指教!
Dim ct As XLS.Style = Book.NewStyle() '定义新样
Style.BorderTop = XLS.LineStyleEnum.Thin
Style.BorderBottom = XLS.LineStyleEnum.Thin
Style.BorderLeft = XLS.LineStyleEnum.Thin
Style.BorderRight = XLS.LineStyleEnum.Thin
Style.BorderColorTop = Color.Black
Style.BorderColorBottom = Color.Black
Style.BorderColorLeft = Color.Black
Style.BorderColorRight = Color.Black
Style.AlignHorz = XLS.AlignHorzEnum.Center '水平居中
Style.AlignVert = XLS.AlignVertEnum.Center '垂直居中
Style ‘显示为百分比的格式
谢谢!