CrystalReportViewer.ShowTextSearchButton 属性

获取或设置工具栏上的搜索按钮是可见还是隐藏。

命名空间 CrystalDecisions.Windows.Forms 程序集 CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)

语法

声明

Public Property ShowTextSearchButton As Boolean
public bool ShowTextSearchButton {get; set;}

示例

此示例将显示 CrystalReportViewer 工具栏中的所有可用按钮。

声明

    Private Sub SetShowButtons()
      CrystalReportViewer.ShowCloseButton = True
      CrystalReportViewer.ShowExportButton = True
      CrystalReportViewer.ShowGotoPageButton = True
      CrystalReportViewer.ShowGroupTreeButton = True
      CrystalReportViewer.ShowPageNavigateButtons = True
      CrystalReportViewer.ShowPrintButton = True
      CrystalReportViewer.ShowRefreshButton = True
      CrystalReportViewer.ShowTextSearchButton = True
      CrystalReportViewer.ShowZoomButton = True
    End Sub
    private void SetShowButtons()
    {
      crystalReportViewer.ShowCloseButton = true;
      crystalReportViewer.ShowExportButton = true;
      crystalReportViewer.ShowGotoPageButton = true;
      crystalReportViewer.ShowGroupTreeButton = true;
      crystalReportViewer.ShowPageNavigateButtons = true;
      crystalReportViewer.ShowPrintButton = true;
      crystalReportViewer.ShowRefreshButton = true;
      crystalReportViewer.ShowTextSearchButton = true;
      crystalReportViewer.ShowZoomButton = true;
    }

版本信息

Crystal Reports Basic for Visual Studio 2008

从此版本开始支持: Crystal Reports for Visual Studio .NET 2002

另请参见

引用

CrystalReportViewer 类
CrystalReportViewer 成员
CrystalDecisions.Windows.Forms 命名空间