Partager via


DateTimeGroupOptions Classe

Permet d'extraire et de définir des options de date et d'heure pour un groupe date/heure dans un rapport.

Pour obtenir la liste de tous les membres de ce type, voir les membres de la classe DateTimeGroupOptions.

System.Object
   CrystalDecisions.CrystalReports.Engine.EngineObjectBase
      CrystalDecisions.CrystalReports.Engine.GroupOptions
         DateTimeGroupOptions

[Visual Basic]

Public Class DateTimeGroupOptions
   Inherits GroupOptions
   Implements IDisposable

[C#]

public class DateTimeGroupOptions : GroupOptions, IDisposable

Exemple

[VJ#]

      private DateTimeGroupOptions
         getDateTimeGroupOptions(int groupIndex)
      {
         Group group;
         DateTimeGroupOptions datetimeGroup = null;
      
         try
         {
            group = Report.get_DataDefinition()
               .get_Groups().get_Item(groupIndex);
            datetimeGroup = (DateTimeGroupOptions)group.get_GroupOptions();
         }
         catch (Exception e)
         {
            return NULL;
         }
         return datetimeGroup;
      }
      
[Visual Basic]

      Private Function GetDateTimeGroupOptions _
         (ByVal groupIndex As Integer) As DateTimeGroupOptions
      
         Dim group As Group
         Dim datetimeGroup As DateTimeGroupOptions
         group = Report.DataDefinition.Groups.Item(groupIndex)
         If TypeOf (group.GroupOptions) Is DateTimeGroupOptions Then
            datetimeGroup = group.GroupOptions
            GetDateTimeGroupOptions = datetimeGroup
         else GetDateTimeGroupOptions = nothing
         End If
      End Function
      
[C#]

      private DateTimeGroupOptions
         GetDateTimeGroupOptions(int groupIndex)
      {
         Group group;
         DateTimeGroupOptions datetimeGroup;
      
         group = Report.DataDefinition.Groups[groupIndex];
         datetimeGroup = group.GroupOptions as DateTimeGroupOptions;
         return datetimeGroup;
      }
      

Configuration requise

Espace de noms CrystalDecisions.CrystalReports.Engine

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

Voir aussi

DateTimeGroupOptions Membres | CrystalDecisions.CrystalReports.Engine Espace de noms

**

©2005 Business Objects SA. Tous droits réservés.

Business Objects SA.
http://www.france.businessobjects.com/
Services de support
http://www.businessobjects.com/support/