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

YearGroup

Struct

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

Definition

Namespace:Telerik.Pivot.Core.Groups

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

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

Implements: IComparableIComparable<YearGroup>IEquatable<YearGroup>

Constructors

Initializes a new instance of the YearGroup struct.

C#
public YearGroup(int year, CultureInfo culture)
Parameters:yearint

The year which this YearGroup will represents.

cultureCultureInfo

The culture.

Initializes a new instance of the YearGroup struct.

C#
public YearGroup(int year)
Parameters:yearint

The year which this YearGroup will represents.

Properties

Gets the Year this YearGroup represents.

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

Methods

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

int

Implements: IComparable.CompareTo(object)

C#
public int CompareTo(YearGroup other)
Parameters:otherYearGroupReturns:

int

Implements: IComparable<YearGroup>.CompareTo(YearGroup)

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

bool

Overrides: ValueType.Equals(object)

C#
public bool Equals(YearGroup other)
Parameters:otherYearGroupReturns:

bool

Implements: IEquatable<YearGroup>.Equals(YearGroup)

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

C#
public static bool operator !=(YearGroup left, YearGroup right)
Parameters:leftYearGroup

The first object to compare.

rightYearGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator <(YearGroup left, YearGroup right)
Parameters:leftYearGroup

The first object to compare.

rightYearGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator <=(YearGroup left, YearGroup right)
Parameters:leftYearGroup

The first object to compare.

rightYearGroup

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

C#
public static bool operator ==(YearGroup left, YearGroup right)
Parameters:leftYearGroup

The first object to compare.

rightYearGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator >(YearGroup left, YearGroup right)
Parameters:leftYearGroup

The first object to compare.

rightYearGroup

The second object to compare.

Returns:

bool

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

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

C#
public static bool operator >=(YearGroup left, YearGroup right)
Parameters:leftYearGroup

The first object to compare.

rightYearGroup

The second object to compare.

Returns:

bool

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