FieldHeadingObject 类
表示报表中的字段标题对象。该对象提供属性和方法,以检索信息和为报表中的字段标题对象设置选项。
有关该类型所有成员的列表,参见 FieldHeadingObject 成员。
System.Object
CrystalDecisions.CrystalReports.Engine.EngineObjectBase
CrystalDecisions.CrystalReports.Engine.ReportObject
CrystalDecisions.CrystalReports.Engine.TextObject
FieldHeadingObject
[Visual Basic]
Public Class FieldHeadingObject Inherits TextObject Implements IDisposable
[C#]
public class FieldHeadingObject : TextObject, IDisposable
示例
下列示例通过 ReportObjects 集合的 Item 属性,按名称检索 ReportObject 对象,并将 ReportObject 转换为 FieldHeadingObject。
[VJ#] private FieldHeadingObject getFieldHeadingObject(String fieldHeadingName) { FieldHeadingObject fieldHeading = null; try { fieldHeading = (FieldHeadingObject)Report.get_ReportDefinition() .get_ReportObjects().get_Item(fieldHeadingName); } catch (Exception e) { } return fieldHeading; }
[Visual Basic] Private Function GetFieldHeadingObject _ (ByVal fieldHeadingName As String) As FieldHeadingObject Dim fieldHeading As FieldHeadingObject If TypeOf _ (Report.ReportDefinition.ReportObjects. _ Item(fieldHeadingName)) Is TextObject Then fieldHeading = _ Report.ReportDefinition.ReportObjects. _ Item(fieldHeadingName) GetFieldHeadingObject = fieldHeading Else : GetFieldHeadingObject = Nothing End If End Function
[C#] private FieldHeadingObject GetFieldHeadingObject(string fieldHeadingName) { FieldHeadingObject fieldHeading; fieldHeading = Report.ReportDefinition.ReportObjects[fieldHeadingName] as FieldHeadingObject; return fieldHeading; }
要求
命名空间 CrystalDecisions.CrystalReports.Engine
程序集 CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
请参见
FieldHeadingObject 成员 | CrystalDecisions.CrystalReports.Engine 命名空间
©2005 Business Objects SA 保留所有权利。
Business Objects SA http://www.china.businessobjects.com/ 支持服务 http://www.china.businessobjects.com/ |