BoxObject Classe
Rappresenta una casella creata sul report.
Per un elenco di tutti i membri di questo tipo, vedere BoxObject.
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
Note
Questa classe consente di recuperare informazioni e impostare le opzioni di formattazione generali ereditate dalla classe DrawingObject.
Esempio
Recupera un oggetto ReportObject in base al nome tramite la proprietà Item della raccolta ReportObjects e imposta ReportObject come BoxObject.
[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;
}
Requisiti
Spazio dei nomi CrystalDecisions.CrystalReports.Engine
Assemblaggio CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
Vedere anche
BoxObject Membri | CrystalDecisions.CrystalReports.Engine Spazio dei nomi
©2005 Business Objects SA Tutti i diritti riservati
Business Objects SA http://www.businessobjects.com/ Servizi di supporto http://support.businessobjects.com/ |