New to Telerik UI for WinFormsStart a free 30-day trial

DayGroup

Struct

Used for Name values of IGroups that are grouping by DateTime. The DayGroup contains the items with DateTime values with the same Day and Month.

Definition

Namespace:Telerik.Pivot.Core.Groups

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
public struct DayGroup : IComparable, IComparable<DayGroup>, IEquatable<DayGroup>

Implements: IComparableIComparable<DayGroup>IEquatable<DayGroup>

Constructors

Initializes a new instance of the DayGroup struct.

C#
public DayGroup(int month, int day, CultureInfo culture)
Parameters:monthint

The month which this DayGroup will represents.

dayint

The day which this DayGroup will represents.

cultureCultureInfo

The culture.

Initializes a new instance of the DayGroup struct.

C#
public DayGroup(int month, int day)
Parameters:monthint

The month which this DayGroup will represents.

dayint

The day which this DayGroup will represents.

Properties

Gets the Day this DayGroup represents.

C#
public int Day { readonly get; set; }

Gets the Month this DayGroup represents.

C#
public int Month { readonly get; set; }

Methods

C#
public int CompareTo(DayGroup other)
Parameters:otherDayGroupReturns:

int

Implements: IComparable<DayGroup>.CompareTo(DayGroup)

C#
public int CompareTo(object obj)
Parameters:objobjectReturns:

int

Implements: IComparable.CompareTo(object)

C#
public bool Equals(DayGroup other)
Parameters:otherDayGroupReturns:

bool

Implements: IEquatable<DayGroup>.Equals(DayGroup)

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: ValueType.Equals(object)

C#
public override int GetHashCode()
Returns:

int

Overrides: ValueType.GetHashCode()

C#
public override string ToString()
Returns:

string

Overrides: ValueType.ToString()

Operators

Determines whether two specified instances of DayGroup are not equal.

C#
public static bool operator !=(DayGroup left, DayGroup right)
Parameters:leftDayGroup

The first object to compare.

rightDayGroup

The second object to compare.

Returns:

bool

true if left and right do not represent the same day group; otherwise, false.

Determines whether one specified DayGroup is less than another specified DayGroup.

C#
public static bool operator <(DayGroup left, DayGroup right)
Parameters:leftDayGroup

The first object to compare.

rightDayGroup

The second object to compare.

Returns:

bool

true if left is less than right; otherwise, false.

Determines whether one specified DayGroup is less than or equal to another specified DayGroup.

C#
public static bool operator <=(DayGroup left, DayGroup right)
Parameters:leftDayGroup

The first object to compare.

rightDayGroup

The second object to compare.

Returns:

bool

true if left is less than or equal to right; otherwise, false.

Determines whether two specified instances of DayGroup are equal.

C#
public static bool operator ==(DayGroup left, DayGroup right)
Parameters:leftDayGroup

The first object to compare.

rightDayGroup

The second object to compare.

Returns:

bool

true if left and right represent the same day group; otherwise, false.

Determines whether one specified DayGroup is greater than another specified DayGroup.

C#
public static bool operator >(DayGroup left, DayGroup right)
Parameters:leftDayGroup

The first object to compare.

rightDayGroup

The second object to compare.

Returns:

bool

true if left is greater than right; otherwise, false.

Determines whether one specified DayGroup is greater than or equal to another specified DayGroup.

C#
public static bool operator >=(DayGroup left, DayGroup right)
Parameters:leftDayGroup

The first object to compare.

rightDayGroup

The second object to compare.

Returns:

bool

true if left is greater than or equal to right; otherwise, false.