C# Класс ToastNotifications.FormAnimator

Animates a form when it is shown, hidden or closed
MDI child forms do not support the Fade method and only support other methods while being displayed for the first time and when closing
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FormAnimator ( Form form ) : System

Creates a new FormAnimator object for the specified form

No animation will be used unless the Method and/or Direction properties are set independently. The Duration is set to quarter of a second by default.

FormAnimator ( Form form, AnimationMethod method, AnimationDirection direction, int duration ) : System

Creates a new FormAnimator object for the specified form using the specified method in the specified direction over the specified duration

The direction argument will have no effect if the Center or Fade method is specified

FormAnimator ( Form form, AnimationMethod method, int duration ) : System

Creates a new FormAnimator object for the specified form using the specified method over the specified duration

No animation will be used for the Roll or Slide methods unless the Direction property is set independently

Приватные методы

Метод Описание
Form_Closing ( object sender, CancelEventArgs e ) : void

Animates the form automatically when it closes

Form_Load ( object sender, EventArgs e ) : void

Animates the form automatically when it is loaded

Form_VisibleChanged ( object sender, EventArgs e ) : void

Animates the form automatically when it is shown or hidden

Описание методов

FormAnimator() публичный Метод

Creates a new FormAnimator object for the specified form
No animation will be used unless the Method and/or Direction properties are set independently. The Duration is set to quarter of a second by default.
public FormAnimator ( Form form ) : System
form System.Windows.Forms.Form /// The form to be animated ///
Результат System

FormAnimator() публичный Метод

Creates a new FormAnimator object for the specified form using the specified method in the specified direction over the specified duration
The direction argument will have no effect if the Center or Fade method is specified
public FormAnimator ( Form form, AnimationMethod method, AnimationDirection direction, int duration ) : System
form System.Windows.Forms.Form /// The form to be animated ///
method AnimationMethod /// The animation method used to show and hide the form ///
direction AnimationDirection /// The direction in which to animate the form ///
duration int /// The number of milliseconds over which the animation is played ///
Результат System

FormAnimator() публичный Метод

Creates a new FormAnimator object for the specified form using the specified method over the specified duration
No animation will be used for the Roll or Slide methods unless the Direction property is set independently
public FormAnimator ( Form form, AnimationMethod method, int duration ) : System
form System.Windows.Forms.Form /// The form to be animated ///
method AnimationMethod /// The animation method used to show and hide the form ///
duration int /// The number of milliseconds over which the animation is played ///
Результат System