Struct
HourGroup

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

Syntax:

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

Implements: IComparableIComparable<HourGroup>IEquatable<HourGroup>

Constructors

HourGroup(int)

Initializes a new instance of the HourGroup struct.

Declaration

cs-api-definition
public HourGroup(int hour)

Parameters

hour

int

The hour which this HourGroup will represents.

HourGroup(int, CultureInfo)

Initializes a new instance of the HourGroup struct.

Declaration

cs-api-definition
public HourGroup(int hour, CultureInfo culture)

Parameters

hour

int

The hour which this HourGroup will represents.

culture

CultureInfo

The culture.

Properties

Hour

Gets the Hour this HourGroup represents.

Declaration

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

Property Value

int

Methods

CompareTo(HourGroup)

Declaration

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

Parameters

other

HourGroup

Returns

int

Implements IComparable<HourGroup>.CompareTo(HourGroup)

CompareTo(object)

Declaration

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

Parameters

obj

object

Returns

int

Implements IComparable.CompareTo(object)

Equals(HourGroup)

Declaration

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

Parameters

other

HourGroup

Returns

bool

Implements IEquatable<HourGroup>.Equals(HourGroup)

Equals(object)

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Usage", "CA2231:OverloadOperatorEqualsOnOverridingValueTypeEquals", Justification = "Design choice.")]
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 !=(HourGroup, HourGroup)

Determines whether two specified instances of HourGroup are not equal.

Declaration

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

Parameters

left

HourGroup

The first object to compare.

right

HourGroup

The second object to compare.

Returns

bool

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

operator <(HourGroup, HourGroup)

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

Declaration

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

Parameters

left

HourGroup

The first object to compare.

right

HourGroup

The second object to compare.

Returns

bool

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

operator <=(HourGroup, HourGroup)

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

Declaration

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

Parameters

left

HourGroup

The first object to compare.

right

HourGroup

The second object to compare.

Returns

bool

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

operator ==(HourGroup, HourGroup)

Determines whether two specified instances of HourGroup are equal.

Declaration

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

Parameters

left

HourGroup

The first object to compare.

right

HourGroup

The second object to compare.

Returns

bool

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

operator >(HourGroup, HourGroup)

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

Declaration

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

Parameters

left

HourGroup

The first object to compare.

right

HourGroup

The second object to compare.

Returns

bool

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

operator >=(HourGroup, HourGroup)

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

Declaration

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

Parameters

left

HourGroup

The first object to compare.

right

HourGroup

The second object to compare.

Returns

bool

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