Share via


DrawingObject.EndSectionName Property

Gets the name of the section at the bottom of the object.

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

Syntax

'Declaration

Public Overrideable ReadOnly Property EndSectionName As String
public virtual string EndSectionName {get;}

Example

This example returns the name of the DrawingObject object.

'Declaration

      Private Function GetDrawingObjectEndSectionName(ByVal myReportDocument As ReportDocument, ByVal fieldObjectName As String) As String
        Dim myReportObject As ReportObject = myReportDocument.ReportDefinition.ReportObjects.Item(fieldObjectName)
        If TypeOf (myReportObject) Is DrawingObject Then
          Dim myDrawingObject As DrawingObject = myReportObject
          GetDrawingObjectEndSectionName = myDrawingObject.EndSectionName
          Exit Function
        End If
      End Function
      
      private String GetDrawingObjectEndSectionName(ReportDocument reportDocument, String fieldObjectName)
      {
        ReportObject reportObject = reportDocument.ReportDefinition.ReportObjects[fieldObjectName];
        if (reportObject is DrawingObject)
        {
          DrawingObject drawingObject = (DrawingObject)reportObject;
          return drawingObject.EndSectionName;
        }
        return null;
      }
      

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

DrawingObject Class
DrawingObject Members
CrystalDecisions.CrystalReports.Engine Namespace