# GraffitiCalendarEvent
Class
## Constants
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| RepeatDaily | Double | 0 | Value for daily repeat. |
| RepeatMonthly | Double | 2 | Value for monthly repeat. |
| RepeatNever | Double | -1 | Value for no repeat. |
| RepeatWeekly | Double | 1 | Value for weekly repeat. |
| RepeatYearly | Double | 3 | Value for annual repeat. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Constructor | (None) | (None) | Creates an instance of the class with the parameters as property values. |
| Constructor | sTitle as String <br> dStart as DateTime <br> dEnd as DateTime = Nil | (None) | Creates an instance of the class with the parameters as property values. |
| Constructor | sTitle as String <br> dStart as DateTime <br> dEnd as DateTime <br> iFrequency as Integer <br> iPeriod as Integer = 0 <br> BGColor as Color = &c1111ff <br> Border as Color = &c1111ff <br> ForeColor as Color = &cffffff | (None) | Creates an instance of the class with the parameters as property values. |
| UpdateDatabaseRecord | (None) | (None) | Update the database record. You should always Try…Catch to ensure data integrity. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AllDay | Boolean | Nil | Does this event last the entire day? |
| Attributes | SourceID | Integer | |
| BackgroundColor | Color | Nil | The background color of the event or series. |
| BorderColor | Color | Nil | The border color of the event or series. |
| CanMove | Boolean | Nil | Determines if the event can be moved by dragging. |
| CanResize | Boolean | Nil | Determines if the event can be resized. |
| DatabaseAutoUpdate | Boolean | False | When the event has been loaded from a RowSet, the component will automatically attempt to update the database row. |
| DatabaseRecord | DatabaseRow | Nil | The DatabaseRow that this event was loaded from. Only set when loaded via AddRowSet. |
| DatabaseRowSet | RowSet | Nil | The originating RowSet for this event's DatabaseRecord. |
| DatabaseRowSetID | Integer | -1 | The unique key for this row. |
| Description | String | Nil | A description of the event. |
| EndDate | DateTime | Nil | The end date of the event. |
| ID | String | Nil | The display ID of the event. This property should not be modified. |
| isChanged | Boolean | False | |
| Location | String | Nil | The location where this event will take place ( IE : “Joe's Country Kitchen”). |
| LockUpdate | Boolean | Nil | When True, changes to the class properties will not propagate to its parent calendar. |
| mParent | GraffitiUpdateInterface | Nil | |
| RepeatFrequency | Integer | Nil | The frequency in which the event should repeat, represented by one of the Repeat constants. |
| RepeatPeriod | Integer | Nil | The period of the repeat, IE : 1 for every one (days/weeks/months). |
| StartDate | DateTime | Nil | The beginning date/time for the event. |
| Tag | Variant | Nil | A custom property for you to store identifiable or related data. |
| TextColor | Color | Nil | The text color used to display the event. |
| Title | String | Nil | The title for the event ( IE : “Meeting With Joe”). |
| Tooltip | String | Nil | Tooltip to display when the user hovers their mouse over the event. |
| URL | String | Nil | |