BoxObject Klasse

Stellt ein Feld dar, das im Bericht gezeichnet wurde.

Eine Liste der Elemente dieses Typs finden Sie unter BoxObject -Elemente.

System.Object
   CrystalDecisions.CrystalReports.Engine.EngineObjectBase
      CrystalDecisions.CrystalReports.Engine.ReportObject
         CrystalDecisions.CrystalReports.Engine.DrawingObject
            BoxObject

[Visual Basic]

Public Class BoxObject
   Inherits DrawingObject
   Implements IDisposable

[C#]

public class BoxObject : DrawingObject, IDisposable

Hinweise

Diese Klasse ermöglicht es Ihnen, Informationen abzurufen und allgemeine von der DrawingObject-Klasse übernommene Formatoptionen festzulegen.

Beispiel

Dieses Beispiel ruft ein ReportObject-Objekt anhand des Namens über die Item-Eigenschaft der ReportObjects-Auflistung ab und wandelt das ReportObject in ein BoxObject um.

[VJ#]

      static private BoxObject getBoxObject(String reportObjectName)
      {
         BoxObject box = null;
      
         try
         {
            box =
               (BoxObject)Report.get_ReportDefinition().get_ReportObjects()
               .get_Item(reportObjectName);
         }
         catch (Exception e)
         {
         }
         return box;
      }
      
[Visual Basic]

      Private Function GetBoxObject _
         (ByVal reportObjectName As String) As BoxObject
      
         Dim box As BoxObject
      
         If TypeOf _
            (Report.ReportDefinition.ReportObjects. _
            Item(reportObjectName)) Is BoxObject Then
            box = _
               Report.ReportDefinition.ReportObjects. _
               Item(reportObjectName)
            GetBoxObject = box
         Else : GetBoxObject = Nothing
         End If
      End Function
      
[C#]

      private BoxObject GetBoxObject(string reportObjectName)
      {
         BoxObject box;
         
         box =
            section.ReportObjects[reportObjectName] as BoxObject;
         return box;
      }
      

Anforderungen

Namespace CrystalDecisions.CrystalReports.Engine

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

Siehe auch

BoxObject Elemente | CrystalDecisions.CrystalReports.Engine Namespace

**

©2005 Business Objects SA Alle Rechte vorbehalten

Business Objects SA
http://germany.businessobjects.com/
Supportleistungen
http://germany.businessobjects.com/support/