New to Telerik UI for WinForms? Start a free 30-day trial

Provides the proposed time-separator decision and the message items around the insertion point.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TimeSeparatorEventArgs : EventArgs

Inheritance: objectEventArgsTimeSeparatorEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes the event data with the default decision and adjacent items.

C#
public TimeSeparatorEventArgs(bool shouldAddSeparator, BaseChatDataItem previousItem, BaseChatDataItem item)
Parameters:shouldAddSeparatorbool

The initial decision based on the configured time interval.

previousItemBaseChatDataItem

The item preceding the candidate message, or null if it is first.

itemBaseChatDataItem

The message item being considered for addition.

Properties

Gets the message item being considered for addition.

C#
public BaseChatDataItem Item { get; }

Gets the item immediately preceding , or null when the item is first.

C#
public BaseChatDataItem PreviousItem { get; }

Gets or sets whether the collection should insert a separator before .

C#
public bool ShouldAddSeparator { get; set; }