WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MetroAppointmentForm

    Show / Hide Table of Contents

    Class MetroAppointmentForm

    Displays a form allowing a user to edit information in a IScheduleAppointment.

    Inheritance
    System.Object
    MetroForm
    MetroAppointmentForm
    Inherited Members
    MetroForm.ResetShowMaximizeBox()
    MetroForm.ResetShowMinimizeeBox()
    MetroForm.ResetShowMinimizeBox()
    MetroForm.ApplyScaleToControl(Single)
    MetroForm.OnShown(EventArgs)
    MetroForm.CreateAccessibilityInstance()
    MetroForm.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
    MetroForm.SetClientSizeCore(Int32, Int32)
    MetroForm.OnHandleCreated(EventArgs)
    MetroForm.OnLocationChanged(EventArgs)
    MetroForm.OnStyleChanged(EventArgs)
    MetroForm.WndProc(Message)
    MetroForm.OnPaintBackground(PaintEventArgs)
    MetroForm.OnMouseMove(MouseEventArgs)
    MetroForm.OnRightToLeftChanged(EventArgs)
    MetroForm.OnRightToLeftLayoutChanged(EventArgs)
    MetroForm.HideControlboxHighlights()
    MetroForm.OnColorSchemeChanged()
    MetroForm.CaptionBarHeightMode
    MetroForm.BackColor
    MetroForm.ShowMouseOver
    MetroForm.MetroColor
    MetroForm.CaptionBarBrush
    MetroForm.CaptionBarColor
    MetroForm.CaptionVerticalAlignment
    MetroForm.BorderColor
    MetroForm.CaptionButtonColor
    MetroForm.CaptionButtonHoverColor
    MetroForm.CaptionBarHeight
    MetroForm.EnableTouchMode
    MetroForm.BorderThickness
    MetroForm.AutoScroll
    MetroForm.CaptionFont
    MetroForm.CaptionForeColor
    MetroForm.CaptionAlign
    MetroForm.IconAlign
    MetroForm.IconTextRelation
    MetroForm.DropShadow
    MetroForm.AllowRoundedCorners
    MetroForm.ColorTable
    MetroForm.IsActive
    MetroForm.IsRightToLeft
    MetroForm.ShowMaximizeBox
    MetroForm.InnerBorderVisibility
    MetroForm.ShowMinimizeBox
    MetroForm.CaptionLabels
    MetroForm.CaptionImages
    MetroForm.CaptionBarPaint
    Namespace: Syncfusion.Windows.Forms.Schedule
    Assembly: Syncfusion.Schedule.Windows.dll
    Syntax
    public class MetroAppointmentForm : MetroForm

    Constructors

    MetroAppointmentForm()

    Initializes a new instance of the MetroAppointmentForm class.

    Declaration
    public MetroAppointmentForm()

    Fields

    DisplayStrings

    Gets or sets the various strings used in the AppointmentForm.

    Declaration
    public static string[] DisplayStrings
    Field Value
    Type Description
    System.String[]
    Remarks

    Modifying the strings in this array will affect the display of the AppointmentForm. You can use these strings to localize the labels that appear on the form.

    Examples

    Here are the default values of this string array.

    public static string[] DisplayStrings = new string[]
    {    
         "Subject:",        // 0                       
         "Location:",       // 1                       
         "Show time as:",   // 2                       
         "Reminder:",       // 3                       
         "All Day Event",    // 4                       
         "End Time:",       // 5                       
         "Start Time:",     // 6                       
         "Label:",          // 7                       
         "subject",          // 8                       
         "Cancel",           // 9                       
         "Save and Close",   // 10                       
         "Enter Appointment", // 11                       
         "Delete this appointment that spans more than one day?", // 12
         "Delete a Span",    // 13                       
         "Delete Span",      // 14                       
         "Edit Recurring",   // 15                       
         "Make Recurring"    // 16                       
     };       

    ShowRecurDialog

    Used to provide the advanced rendering features of the button

    Declaration
    public ButtonAdv ShowRecurDialog
    Field Value
    Type Description
    ButtonAdv

    Properties

    CreateParams

    Gets the required creation parameters when the control handle is created.

    Declaration
    protected override CreateParams CreateParams { get; }
    Property Value
    Type Description
    System.Windows.Forms.CreateParams
    Overrides
    MetroForm.CreateParams

    Font

    Gets or sets the System.Drawing.Font value for AppointmentForm.

    Declaration
    public override Font Font { get; set; }
    Property Value
    Type Description
    System.Drawing.Font

    IgnoreScheduleRTLSettings

    Gets or sets a value indicating whether this form will use the RTL settings from the ScheduleControl to decide whether to mirror the form.

    Declaration
    public static bool IgnoreScheduleRTLSettings { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Dispose(Boolean)

    Clean up any resources being used.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    MetroForm.Dispose(Boolean)

    OnLoad(EventArgs)

    Overridden to conditionally display the recurring event button.

    Declaration
    protected override void OnLoad(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The System.EventArgs that contains the event data.

    Overrides
    MetroForm.OnLoad(EventArgs)

    SaveChangesToItem()

    Moves values displayed in the form's Controls to the Item object.

    Declaration
    public void SaveChangesToItem()

    SetDataProvider(IScheduleDataProvider, IScheduleAppointment)

    Initializes the form using the IScheduleDataProvider that provides the data for the ScheduleControl.

    Declaration
    public void SetDataProvider(IScheduleDataProvider provider, IScheduleAppointment item)
    Parameters
    Type Name Description
    IScheduleDataProvider provider

    The IScheduleDataProvider object.

    IScheduleAppointment item

    The current item to be displayed on this form.

    Remarks

    IScheduleDataProvider is the object that provides the data to the ScheduleControl. This includes items like the DropLists that provide the options for many of the properties you see in IScheduleAppointments in addition to the IScheduleAppointments themselves. This method uses the information from the IScheduleDataProvider to populate the controls on this form.

    SetDataProvider(IScheduleDataProvider, IScheduleAppointment, Int32, String)

    Initializes the form using the IScheduleDataProvider that provides the data for the ScheduleControl.

    Declaration
    public void SetDataProvider(IScheduleDataProvider provider, IScheduleAppointment item, int minimumTimeSlot, string format)
    Parameters
    Type Name Description
    IScheduleDataProvider provider

    The IScheduleDataProvider object.

    IScheduleAppointment item

    The current item to be displayed on this form.

    System.Int32 minimumTimeSlot

    The time increment used in the time dropdowns.

    System.String format

    The time format used in the time dropdowns.

    Remarks

    IScheduleDataProvider is the object that provides the data to the ScheduleControl. This includes items like the DropLists that provide the options for many of the properties you see in IScheduleAppointments in addition to the IScheduleAppointments themselves. This method uses the information from the IScheduleDataProvider to populate the controls on this form.

    SetDataProvider(IScheduleDataProvider, IScheduleAppointment, Int32, String, ScheduleControl)

    Sets the data provider to the scheduler

    Declaration
    public void SetDataProvider(IScheduleDataProvider provider, IScheduleAppointment item, int minimumTimeSlot, string format, ScheduleControl schedule)
    Parameters
    Type Name Description
    IScheduleDataProvider provider

    providing the schedule item data to the ScheduleControl

    IScheduleAppointment item

    Defines the individual schedule items

    System.Int32 minimumTimeSlot

    Specifies the timeslot

    System.String format

    set the format

    ScheduleControl schedule

    provides the schedule functionality

    UnhookDefaultRecurrenceDialog()

    Unsubscribe the click event that opens the default recurrence dialog.

    Declaration
    public void UnhookDefaultRecurrenceDialog()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved