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

WeekGroup

Struct

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

Definition

Namespace:Telerik.Pivot.Core.Groups

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

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

Implements: IComparableIComparable<WeekGroup>IEquatable<WeekGroup>

Constructors

Initializes a new instance of the WeekGroup struct.

C#
public WeekGroup(int week, CultureInfo culture)
Parameters:weekint

The week which this WeekGroup will represents.

cultureCultureInfo

The culture.

Initializes a new instance of the WeekGroup struct.

C#
public WeekGroup(int week)
Parameters:weekint

The week which this WeekGroup will represents.

Properties

Gets the Week this WeekGroup represents.

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

Methods

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

int

Implements: IComparable.CompareTo(object)

C#
public int CompareTo(WeekGroup other)
Parameters:otherWeekGroupReturns:

int

Implements: IComparable<WeekGroup>.CompareTo(WeekGroup)

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

bool

Overrides: ValueType.Equals(object)

C#
public bool Equals(WeekGroup other)
Parameters:otherWeekGroupReturns:

bool

Implements: IEquatable<WeekGroup>.Equals(WeekGroup)

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

C#
public static bool operator !=(WeekGroup left, WeekGroup right)
Parameters:leftWeekGroup

The first object to compare.

rightWeekGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator <(WeekGroup left, WeekGroup right)
Parameters:leftWeekGroup

The first object to compare.

rightWeekGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator <=(WeekGroup left, WeekGroup right)
Parameters:leftWeekGroup

The first object to compare.

rightWeekGroup

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

C#
public static bool operator ==(WeekGroup left, WeekGroup right)
Parameters:leftWeekGroup

The first object to compare.

rightWeekGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator >(WeekGroup left, WeekGroup right)
Parameters:leftWeekGroup

The first object to compare.

rightWeekGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator >=(WeekGroup left, WeekGroup right)
Parameters:leftWeekGroup

The first object to compare.

rightWeekGroup

The second object to compare.

Returns:

bool

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