ClassDateGroupDescription
Describes the grouping of items using a date range as the criteria.
Definition
Namespace:Telerik.UI.Xaml.Controls
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class DateGroupDescription : PropertyGroupDescriptionBase, INotifyPropertyChanged, ISupportInitialize
Inheritance: objectCloneableSettingsNodeDescriptionBaseGroupDescriptionBaseGroupDescriptionPropertyGroupDescriptionBaseDateGroupDescription
Implements:
Inherited Members
Constructors
DateGroupDescription()
Declaration
public DateGroupDescription()
Properties
GroupLength
Gets the duration of the group descriptor.
Methods
CloneOverride(Cloneable)
Makes the instance a clone (deep copy) of the specified Cloneable.
Declaration
protected override void CloneOverride(Cloneable source)
Parameters
source
The object to clone.
Overrides
Remarks
Notes to Inheritors If you derive from Cloneable, you need to override this method to copy all properties. It is essential that all implementations call the base implementation of this method (if you don't call base you should manually copy all needed properties including base properties).
CreateGroupNames(DateTime, DateTime)
Generates groups based on the given date range.
CreateGroupNames(DateTime, DateTime, Func<object, bool>)
Generates groups based on the given date range and filter.
Declaration
public void CreateGroupNames(DateTime start, DateTime end, Func<object, bool> filter)
Parameters
start
The start date. This is the first group in the group names.
end
The end date. This is the last group in the group names.
filter
The filter function that could filter date generation.
CreateGroupNames(DateTime, DateTime, Func<object, bool>, TimeZoneInfo)
Generates groups based on the given date range and filter.
Declaration
public void CreateGroupNames(DateTime start, DateTime end, Func<object, bool> filter, TimeZoneInfo timeZone)
Parameters
start
The start date. This is the first group in the group names.
end
The end date. This is the last group in the group names.
filter
The filter function that could filter date generation.
timeZone
The time zone.
CreateInstanceCore()
When implemented in a derived class, creates a new instance of the Cloneable derived class.
Declaration
protected override Cloneable CreateInstanceCore()
Returns
New instance for cloning.
Overrides
Remarks
Do not call this method directly (except when calling base in an implementation). This method is called internally by the Clone() method whenever a new instance of the Cloneable is created. Notes to Inheritors. Every Cloneable derived class must implement this method. A typical implementation is to simply call the default constructor and return the result.
GroupNameFromItem(object, int)
Returns the group name(s) for the given item.