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

ViewModel that represents a non-intersecting group of timeline dataItems.

Definition

Namespace:Telerik.Windows.Controls.Timeline

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class GroupData : IComparable, IComparable<DateTime>

Inheritance: objectGroupData

Derived Classes: TimelineGroupData

Implements: IComparableIComparable<DateTime>

Constructors

C#
public GroupData()

Properties

Gets or sets the data items.

C#
public List<TimelineDataItem> DataItems { get; set; }
Property Value:

The data items.

Gets or sets the end ticks.

C#
public long EndTicks { get; set; }
Property Value:

The end ticks.

Gets or sets the rows count.

C#
public int RowsCount { get; set; }
Property Value:

The rows count.

Gets or sets the start ticks.

C#
public long StartTicks { get; set; }
Property Value:

The start ticks.

Methods

Compares the current instance with another DateTime and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

C#
public int CompareTo(DateTime other)
Parameters:otherDateTime

A DateTime object to compare with this instance.

Returns:

int

Implements: IComparable<DateTime>.CompareTo(DateTime)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

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

An object to compare with this instance.

Returns:

int

Implements: IComparable.CompareTo(object)

Determines whether the specified object is equal to this instance.

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

The object to compare with this instance.

Returns:

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides: object.Equals(object)

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: object.GetHashCode()

Operators

Implements the operator !=.

C#
public static bool operator !=(GroupData groupData1, GroupData groupData2)
Parameters:groupData1GroupData

The group data1.

groupData2GroupData

The group data2.

Returns:

bool

The result of the operator.

Implements the operator <.

C#
public static bool operator <(GroupData groupData1, GroupData groupData2)
Parameters:groupData1GroupData

The group data1.

groupData2GroupData

The group data2.

Returns:

bool

The result of the operator.

Implements the operator ==.

C#
public static bool operator ==(GroupData groupData1, GroupData groupData2)
Parameters:groupData1GroupData

The group data1.

groupData2GroupData

The group data2.

Returns:

bool

The result of the operator.

Implements the operator >.

C#
public static bool operator >(GroupData groupData1, GroupData groupData2)
Parameters:groupData1GroupData

The group data1.

groupData2GroupData

The group data2.

Returns:

bool

The result of the operator.