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

HourGroup

Struct

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

Definition

Namespace:Telerik.Pivot.Core.Groups

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

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

Implements: IComparableIComparable<HourGroup>IEquatable<HourGroup>

Constructors

Initializes a new instance of the HourGroup struct.

C#
public HourGroup(int hour, CultureInfo culture)
Parameters:hourint

The hour which this HourGroup will represents.

cultureCultureInfo

The culture.

Initializes a new instance of the HourGroup struct.

C#
public HourGroup(int hour)
Parameters:hourint

The hour which this HourGroup will represents.

Properties

Gets the Hour this HourGroup represents.

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

Methods

C#
public int CompareTo(HourGroup other)
Parameters:otherHourGroupReturns:

int

Implements: IComparable<HourGroup>.CompareTo(HourGroup)

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

int

Implements: IComparable.CompareTo(object)

C#
public bool Equals(HourGroup other)
Parameters:otherHourGroupReturns:

bool

Implements: IEquatable<HourGroup>.Equals(HourGroup)

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

C#
public static bool operator !=(HourGroup left, HourGroup right)
Parameters:leftHourGroup

The first object to compare.

rightHourGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator <(HourGroup left, HourGroup right)
Parameters:leftHourGroup

The first object to compare.

rightHourGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator <=(HourGroup left, HourGroup right)
Parameters:leftHourGroup

The first object to compare.

rightHourGroup

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

C#
public static bool operator ==(HourGroup left, HourGroup right)
Parameters:leftHourGroup

The first object to compare.

rightHourGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator >(HourGroup left, HourGroup right)
Parameters:leftHourGroup

The first object to compare.

rightHourGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator >=(HourGroup left, HourGroup right)
Parameters:leftHourGroup

The first object to compare.

rightHourGroup

The second object to compare.

Returns:

bool

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