Share via


FieldHeadingObject Class

Represents a field-heading object found in a report. This object provides properties and methods for retrieving information and setting options for a field-heading object in a report.

Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)

Syntax

'Declaration
Public Class FieldHeadingObject
    Inherits TextObject
    Implements IDisposable
public class FieldHeadingObject : TextObject, IDisposable

Example

This example shows how to retrieve a ReportObject object by name through the Item property of the ReportObjects collection, and casts the ReportObject as a FieldHeadingObject and how to update the field heading object properties.

'Declaration

      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
      
      private FieldHeadingObject GetFieldHeadingObject(string fieldHeadingName)
      {
         FieldHeadingObject fieldHeading;

         fieldHeading = Report.ReportDefinition.ReportObjects[fieldHeadingName] as FieldHeadingObject;
         return fieldHeading;
      }
      

Inheritance Hierarchy

Object
   EngineObjectBase
      ReportObject
         TextObject
            FieldHeadingObject

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports .NET 10

See Also

Reference

FieldHeadingObject Members
CrystalDecisions.CrystalReports.Engine Namespace