即使我在图表中添加标题,也找不到图表的标题元素。
Imports System.Web.UI.DataVisualization.Charting
With chartResult
Dim t As Title = .Titles.Add("title1")
.Titles("title1").Alignment = ContentAlignment.MiddleLeft 'This is saying it can´t
can´t find the title
end With
Argumentexception由用户代码取消处理 在'TitleCollection'中找不到名为'title1'的图表元素。
答案 0 :(得分:1)
Dim t As Title = chartResult.Titles.Add("Title1")
t.Alignment = ContentAlignment.MiddleLeft