如何隐藏StimulsoftReports.Net报表设计器工具箱的组件

作者:mayz    来源:慧都控件网    浏览:Loading...      日期:2012-10-17

问题描述:

如何隐藏Stimulsoft Reports.Net报表设计器工具箱中的组件?

问题解答:

要实现隐藏Stimulsoft Reports.Net报表设计器工具箱中组件的目的,您需要将ServiceEnabled和PlaceOnToolbox的属性值设置为False,具体示例如下:
[C#]

StiServiceContainer services = StiConfig.Services.GetServices(typeof(StiComponent));
foreach (StiComponent service in services)
{
  if (service is Stimulsoft.Report.Chart.StiChart)
  {
    service.PlaceOnToolbox = false;
    service.ServiceEnabled = false;
    break;
  }
}

 

Tag标签:.Net报表 Stimulsoft Reports.Net 

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:Stimulsoft中文网 [http://www.Stimulsoft.cn/]
本文地址: http://www.Stimulsoft.cn/Resources/FAQ/112.html

上一篇: 如何改变StimulsoftReports.Net中WinForms设计器默认面板布局

下一篇: Stimulsoft Reports.Net报表的WinFormsDesigner当前文件