Back to Devexpress

DXGoogleCalendarSync.CalendarId Property

windowsforms-devexpress-dot-xtrascheduler-dot-googlecalendar-dot-dxgooglecalendarsync-c3b7a36a.md

latest4.4 KB
Original Source

DXGoogleCalendarSync.CalendarId Property

Gets or sets the CalendarListEntry.ID property of a Google Calendar, whose events should be synchronized with Scheduler Appointments.

Namespace : DevExpress.XtraScheduler.GoogleCalendar

Assembly : DevExpress.XtraScheduler.v25.2.GoogleCalendar.dll

NuGet Package : DevExpress.Win.Scheduler.GoogleCalendar

Declaration

csharp
public string CalendarId { get; set; }
vb
Public Property CalendarId As String

Property Value

TypeDescription
String

A String value that specifies a calendar identifier.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the CalendarId property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-sync-with-google-calendars/CS/GCSync/Form1.cs#L56

csharp
this.activeCalendarId = selectedCalendar.Id;
this.gcSyncComponent.CalendarId = selectedCalendar.Id;
this.gcSyncComponent.Synchronize();

winforms-scheduler-sync-google-event-colors-with-labels/CS/SchedulerGSync/SchedulerGSync/MainForm.cs#L71

csharp
void OnBbiSyncItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
    this.dxGoogleCalendarSync1.CalendarId = ApplicationConfig.Instance.CalendarId;
    this.dxGoogleCalendarSync1.CalendarService = this.service;

winforms-scheduler-import-google-calendar/CS/GoogleCalendarExample/Form1.cs#L31

csharp
this.dxGoogleCalendarSync1.CalendarService = CalendarService;
this.dxGoogleCalendarSync1.CalendarId = CalendarEntry.Id;
this.dxGoogleCalendarSync1.Synchronize();

winforms-scheduler-sync-with-google-calendars/VB/GCSync/Form1.vb#L59

vb
activeCalendarId = selectedCalendar.Id
gcSyncComponent.CalendarId = selectedCalendar.Id
gcSyncComponent.Synchronize()

winforms-scheduler-sync-google-event-colors-with-labels/VB/SchedulerGSync/SchedulerGSync/MainForm.vb#L75

vb
Private Sub OnBbiSyncItemClick(ByVal sender As Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbiSync.ItemClick
    Me.dxGoogleCalendarSync1.CalendarId = ApplicationConfig.Instance.CalendarId
    Me.dxGoogleCalendarSync1.CalendarService = Me.service

See Also

Google Calendars

DXGoogleCalendarSync Class

DXGoogleCalendarSync Members

DevExpress.XtraScheduler.GoogleCalendar Namespace