Struct
MonthGroup

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.Pivot.Core.dll

Syntax:

cs-api-definition
public struct MonthGroup : IComparable, IComparable<MonthGroup>, IEquatable<MonthGroup>

Implements: IComparableIComparable<MonthGroup>IEquatable<MonthGroup>

Constructors

MonthGroup(int)

Initializes a new instance of the MonthGroup struct.

Declaration

cs-api-definition
public MonthGroup(int month)

Parameters

month

int

The month.

MonthGroup(int, CultureInfo)

Initializes a new instance of the MonthGroup struct.

Declaration

cs-api-definition
public MonthGroup(int month, CultureInfo culture)

Parameters

month

int

The month.

culture

CultureInfo

The culture.

Properties

Month

Gets the Month this MonthGroup represents.

Declaration

cs-api-definition
public int Month { readonly get; set; }

Property Value

int

Methods

CompareTo(MonthGroup)

Declaration

cs-api-definition
public int CompareTo(MonthGroup other)

Parameters

other

MonthGroup

Returns

int

Implements IComparable<MonthGroup>.CompareTo(MonthGroup)

CompareTo(object)

Declaration

cs-api-definition
public int CompareTo(object obj)

Parameters

obj

object

Returns

int

Implements IComparable.CompareTo(object)

Equals(MonthGroup)

Declaration

cs-api-definition
public bool Equals(MonthGroup other)

Parameters

other

MonthGroup

Returns

bool

Implements IEquatable<MonthGroup>.Equals(MonthGroup)

Equals(object)

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides ValueType.Equals(object)

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides ValueType.GetHashCode()

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides ValueType.ToString()

Operators

operator !=(MonthGroup, MonthGroup)

Determines whether two specified instances of MonthGroup are not equal.

Declaration

cs-api-definition
public static bool operator !=(MonthGroup left, MonthGroup right)

Parameters

left

MonthGroup

The first object to compare.

right

MonthGroup

The second object to compare.

Returns

bool

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

operator <(MonthGroup, MonthGroup)

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

Declaration

cs-api-definition
public static bool operator <(MonthGroup left, MonthGroup right)

Parameters

left

MonthGroup

The first object to compare.

right

MonthGroup

The second object to compare.

Returns

bool

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

operator <=(MonthGroup, MonthGroup)

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

Declaration

cs-api-definition
public static bool operator <=(MonthGroup left, MonthGroup right)

Parameters

left

MonthGroup

The first object to compare.

right

MonthGroup

The second object to compare.

Returns

bool

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

operator ==(MonthGroup, MonthGroup)

Determines whether two specified instances of MonthGroup are equal.

Declaration

cs-api-definition
public static bool operator ==(MonthGroup left, MonthGroup right)

Parameters

left

MonthGroup

The first object to compare.

right

MonthGroup

The second object to compare.

Returns

bool

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

operator >(MonthGroup, MonthGroup)

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

Declaration

cs-api-definition
public static bool operator >(MonthGroup left, MonthGroup right)

Parameters

left

MonthGroup

The first object to compare.

right

MonthGroup

The second object to compare.

Returns

bool

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

operator >=(MonthGroup, MonthGroup)

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

Declaration

cs-api-definition
public static bool operator >=(MonthGroup left, MonthGroup right)

Parameters

left

MonthGroup

The first object to compare.

right

MonthGroup

The second object to compare.

Returns

bool

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