Classe BoxObject
Rappresenta una casella creata sul report. Questa classe consente di recuperare informazioni e impostare le opzioni di formattazione generali ereditate dalla classe DrawingObject.
Per un elenco di tutti i membri di questo tipo, vedere Membri BoxObject.
[Visual Basic]
Public Class BoxObject
Inherits DrawingObject
[C#]
public class BoxObject : DrawingObject
[C++]
__gc public class BoxObject : public DrawingObject
[VJ#]
public class BoxObject extends DrawingObject
Note
Restituisce un oggetto ReportObject in base all'indice o al nome tramite la proprietà Item della raccolta ReportObjects e imposta ReportObject come BoxObject.
[Visual Basic]
Private Function GetBoxObject _
(ByVal reportObjectName As String) As BoxObject
Dim box As BoxObject
' Individua ReportObject in base al nome, lo imposta come un BoxObject e
' lo restituisce.
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;
// Individua ReportObject in base al nome, lo imposta come un BoxObject e
// lo restituisce.
box =
section.ReportObjects[reportObjectName] as BoxObject;
return box;
}
[C++]
BoxObject* GetBoxObject(String* reportObjectName)
{
BoxObject* box;
// Individua ReportObject in base al nome, lo imposta come un BoxObject e,
// lo restituisce.
try
{
box = __try_cast<BoxObject*>
(Report->ReportDefinition->
ReportObjects->Item[reportObjectName]);
return box;
}
catch(System::InvalidCastException*)
{
return 0;
}
};
[VJ#]
private BoxObject GetBoxObject(String reportObjectName)
{
BoxObject box;
// Individua ReportObject in base al nome, lo imposta come un BoxObject e
// lo restituisce.
box = (BoxObject)
section.get_ReportObjects().get_Item(reportObjectName);
return box;
}
Requisiti
Spazio dei nomi: CrystalDecisions.CrystalReports.Engine
Piattaforme: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP
Assemblaggio: CrystalDecisions.Crystalreports.Engine (in CrystalDecisions.Crystalreports.Engine.dll)
Vedere anche
Membri BoxObject | Spazio dei nomi CrystalDecisions.CrystalReports.Engine