Skip to main content

TcxSchedulerEvent Methods

A persistent user event object in the scheduler control.
Name Description
AllowLink(TcxSchedulerEvent)
Assign(TPersistent) Inherited from TPersistent.
AssignAttributes(TcxSchedulerEvent,Boolean) Copies the contents of the ASource user event.
AssignDefaultValues protected
AssignTo(TPersistent) Inherited from TPersistent.
BeginEditing Loads the current object properties’ values for editing and activates edit mode for the user event.
Cancel Deactivates edit mode and prevents the user event from being updated in storage.
CanLink(TcxSchedulerEvent) Checks whether an event can be linked to the current task when scheduling in the Gantt View.
Conflicts(Boolean) Determines whether other user events overlap with the scheduled time of the user event.
CreateConflictsInfo(Boolean) Instantiates a TcxSchedulerEventConflictsInfo object which contains information on any user events that overlap with the user event.
Delete Removes the user event from storage and memory and updates the scheduler to reflect the changes.
DeleteExceptions Deletes all the custom occurrences and exceptions if the user event is the pattern.
EndEditing Flushes the updated user event to storage and deactivates edit mode for it.
Equals(TObject) Inherited from TObject.
GetCustomFieldValue(TcxCustomSchedulerStorageField) Returns the user-defined attribute’s value of the user event from the ACustomField in the TcxSchedulerStorageFields collection.
GetCustomFieldValueByIndex(Integer) Returns the user-defined attribute’s value of the user event from the TcxSchedulerStorageFields collection at the position specified by the AIndex parameter.
GetCustomFieldValueByName(string) Returns the user-defined attribute’s value of the user event from the AName custom field, located in the TcxSchedulerStorageFields collection.
GetHashCode Inherited from TObject.
GetNamePath Inherited from TPersistent.
GetOccurrence(TDateTime) Returns the recurring user event’s occurrence by the ADate.
GetOriginalDate Returns the start date and time of the user event.
GetOwner Inherited from TPersistent.
GetRecurrenceChain Loads all the TcxSchedulerEvent objects that represent exceptions or custom occurrences of the user event, from storage and puts them in the TcxSchedulerEventList collection, if the flag etPattern on the user event’s EventType property is active.
GetResourceItem

Returns the TcxSchedulerStorageResourceItem object, which represents the schedule resource.

This method is deprecated.

GetTaskLinkOwnerRelation(TcxSchedulerEvent,TcxSchedulerEventRelation) Checks whether the current task (the successor) and a specified task (the predecessor) are linked, and obtains the link type.
GetValidTaskTimeRange(TDateTime,TDateTime) Validates the current task’s time start and end time.
GetValidTaskTimeRangeByRelation(TcxSchedulerEventRelation,TcxSchedulerEvent,TDateTime,TDateTime) Validates the current task’s time bounds.
HasAsParentGroup(TcxSchedulerEvent) Determines whether AEvent is the task’s group parent.
HasChildren Determines whether the task owns the group children.
HasExceptions Specifies whether the user event has custom occurrences or exceptions in the chain of reoccurrences if this user event is the parent of this chain.
HasReminderForResourceID(Variant)
IsAllDayOrLonger
IsDayEvent(Integer)
IsDayEvent(TDateTime) Checks whether the ADate date contains the user event.
IsEventLinked(TcxSchedulerEvent)
IsRecurring Checks whether the user event is recurring.
IsResourceEvent(TcxSchedulerStorageResourceItem,Boolean) Checks whether the user event belongs to the AResource resource.
IsSharedWithResource(TcxSchedulerStorageResourceItem)
IsSharedWithResource(Variant) Checks whether the user event belongs to the AResourceItem resource.
MoveTo(TDateTime) Changes the user event’s start time to the start time specified by the AStartTime parameter.
Post Submits the user event to storage and updates the scheduler to reflect the changes.
RemoveRecurrence Changes the state of the user event from recurring to regular.
ReplaceResourceID(Variant) Replaces an associated resource with a new one or adds a new resource if the user event is shared between resources.
SetCustomFieldValue(TcxCustomSchedulerStorageField,Variant) Writes the AValue user-defined attribute’s value of the user event to the ACustomField in the TcxSchedulerStorageFields collection.
SetCustomFieldValueByIndex(Integer,Variant) Writes the AValue user-defined attribute’s value of the user event to the custom field located at the AIndex position in the TcxSchedulerStorageFields collection.
SetCustomFieldValueByName(string,Variant) Writes the AValue user-defined attribute’s value of the user event to the custom field identified by the AName in the TcxSchedulerStorageFields collection.
ShareWithResource(TcxSchedulerStorageResourceItem)
ShareWithResource(Variant) Assigns the user event to the resource specified by the AResourceItem or AResourceID parameter.
TimeBias Returns the system time offset from UTC.
ToString Inherited from TObject.
UnshareWithResource(TcxSchedulerStorageResourceItem)
UnshareWithResource(Variant) Disassociates the user event from the AResourceItem resource.
ValidateOccurrenceTimeBounds(TcxSchedulerEvent,TDateTime,TDateTime)
See Also