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

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

Definition

Namespace:Telerik.Pivot.Core.Groups

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

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

Implements: IComparableIComparable<MonthGroup>IEquatable<MonthGroup>

Constructors

Initializes a new instance of the MonthGroup struct.

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

The month.

cultureCultureInfo

The culture.

Initializes a new instance of the MonthGroup struct.

C#
public MonthGroup(int month)
Parameters:monthint

The month.

Properties

Gets the Month this MonthGroup represents.

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

Methods

C#
public int CompareTo(MonthGroup other)
Parameters:otherMonthGroupReturns:

int

Implements: IComparable<MonthGroup>.CompareTo(MonthGroup)

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

int

Implements: IComparable.CompareTo(object)

C#
public bool Equals(MonthGroup other)
Parameters:otherMonthGroupReturns:

bool

Implements: IEquatable<MonthGroup>.Equals(MonthGroup)

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 MonthGroup are not equal.

C#
public static bool operator !=(MonthGroup left, MonthGroup right)
Parameters:leftMonthGroup

The first object to compare.

rightMonthGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator <(MonthGroup left, MonthGroup right)
Parameters:leftMonthGroup

The first object to compare.

rightMonthGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator <=(MonthGroup left, MonthGroup right)
Parameters:leftMonthGroup

The first object to compare.

rightMonthGroup

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 MonthGroup are equal.

C#
public static bool operator ==(MonthGroup left, MonthGroup right)
Parameters:leftMonthGroup

The first object to compare.

rightMonthGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator >(MonthGroup left, MonthGroup right)
Parameters:leftMonthGroup

The first object to compare.

rightMonthGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator >=(MonthGroup left, MonthGroup right)
Parameters:leftMonthGroup

The first object to compare.

rightMonthGroup

The second object to compare.

Returns:

bool

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