您可以通过名为caption的属性来显示标题值。这是一个简单的演示供您参考。
DTE2 dte = (DTE2)this.ServiceProvider.GetService(typeof(DTE));
List<Window> list = new List<Window>();
foreach (Window w in dte.Windows)
{
if (w.Caption == "Solution Explorer")
{
list.Add(w);
}
}
for (int i = 0; i < list.Count; i++)
{
list[i].Caption = "Test" + i;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句