KeyTime Структура
Определение
public value class KeyTime : IEquatable<System::Windows::Media::Animation::KeyTime>
[System.ComponentModel.TypeConverter(typeof(System.Windows.KeyTimeConverter))]
public struct KeyTime : IEquatable<System.Windows.Media.Animation.KeyTime>
[<System.ComponentModel.TypeConverter(typeof(System.Windows.KeyTimeConverter))>]
type KeyTime = struct
Public Structure KeyTime
Implements IEquatable(Of KeyTime)
- Наследование
- Атрибуты
- Реализации
Комментарии
Каждый ключевой кадр KeyTime указывает, когда заканчивается этот ключевой кадр.Each key frame's KeyTime specifies when that key frame ends. Он не указывает, как долго будет воспроизводиться ключевое время.It does not specify how long the key time plays. Продолжительность выполнения ключевого кадра определяется моментом окончания ключевого кадра, моментом окончания предыдущего ключевого кадра и длительностью анимации.The amount of time a key frame plays is determined by when the key frame ends, when the previous key frame ended, and the animation's duration. Дополнительные сведения см. в статье Общие сведения об анимации по ключевым кадрам .See Key-Frame Animations Overview for more information.
KeyTimeМожет быть выражено в нескольких различных форматах, включая числовое значение времени, в процентах или в виде одного из специальных значений Sentinel Uniform или Paced .A KeyTime may be expressed in several different formats, including a numeric time value, as a percentage, or as one of the special sentinel values Uniform or Paced.
Использование атрибута XAMLXAML Attribute Usage
<object property="[days.]hours:minutes:seconds[.fractionalSeconds]"/>
-или--or-
<object property="[days.]hours:minutes"/>
-или--or-
<object property="pctValue%"/>
-или--or-
<object property="Uniform"/><object property="Uniform"/>
-или--or-
<object property="Paced"/><object property="Paced"/>
Значения XAMLXAML Values
неделиdays
Целочисленное значение, большее или равное 0, которое указывает число дней, охваченных этим объектом KeyTime .An integer value greater than or equal to 0 that specifies the number of days spanned by this KeyTime. Дополнительные сведения см. в описании свойства TimeSpan.For more information, see the TimeSpan property.
сутокhours
Целочисленное значение в диапазоне от 0 до 23, указывающее количество часов, охваченных этим объектом KeyTime .An integer value between 0 and 23 that specifies the number of hours spanned by this KeyTime. Дополнительные сведения см. в описании свойства TimeSpan.For more information, see the TimeSpan property.
тезисminutes
Целочисленное значение от 0 до 59, указывающее количество минут, охваченных этим объектом KeyTime .An integer value between 0 and 59 that specifies the number of minutes spanned by this KeyTime. Дополнительные сведения см. в описании свойства TimeSpan.For more information, see the TimeSpan property.
секундseconds
Значение с плавающей запятой в диапазоне от 0 до 59, указывающее количество секунд, охваченных этим объектом KeyTime .A floating-point value between 0 and 59 that specifies the number of seconds spanned by this KeyTime. Дополнительные сведения см. в описании свойства TimeSpan.For more information, see the TimeSpan property.
фрактионалсекондсfractionalSeconds
Целочисленное значение, состоящее из 1 – 7 цифр, которое указывает доли секунды.An integer value consisting of 1 to 7 digits that specifies fractional seconds. Дополнительные сведения см. в описании свойства TimeSpan.For more information, see the TimeSpan property.
пктвалуеpctValue
Значение с плавающей запятой от 0 до 100 включительно, которое указывает это KeyTime в процентах от общей длительности анимации.A floating-point value between 0 and 100, inclusive, that specifies this KeyTime as a percentage of the animation's total duration. За ним должен следовать литеральный символ %
. Дополнительные сведения см. в описании Percent Свойства.This should be followed by the literal character %
.For more information, see the Percent property.
Свойства
Paced |
Получает значение Paced, которое создает поведение с учетом времени, приводящее к анимации, которая выполняет интерполяцию с постоянной скоростью.Gets the Paced value which creates timing behavior resulting in an animation that interpolates at a constant rate. |
Percent |
Получает время окончания ключевого кадра, которое выражается как процент от общей продолжительности анимации.Gets the time when the key frame ends expressed as a percentage of the total duration of the animation. |
TimeSpan |
Получает время окончания ключевого кадра, которое выражается относительно начала анимации.Gets the time when the key frame ends expressed as a time relative to the beginning of the animation. |
Type |
Получает значение Type, представленное этим экземпляром.Gets the Type value this instance represents. |
Uniform |
Получает значение Uniform, которое равномерно распределяет выделенное для анимации время между ключевыми кадрами.Gets the Uniform value which divides the allotted time of the animation evenly between key frames. |
Методы
Equals(KeyTime) |
Определяет равенство этого экземпляра и указанного объекта KeyTime.Indicates whether this instance is equal to the specified KeyTime. |
Equals(KeyTime, KeyTime) |
Указывает, равны ли две заданные структуры KeyTime.Indicates whether the two specified KeyTime structures are equal. |
Equals(Object) |
Определяет, равнозначны ли этот экземпляр и указанный объект.Indicates whether this instance equals the specified object. |
FromPercent(Double) |
Создает новый экземпляр KeyTime, в котором свойство KeyTimeType было инициализировано значением указанного параметра.Creates a new KeyTime instance, with the KeyTimeType property initialized to the value of the specified parameter. |
FromTimeSpan(TimeSpan) |
Создает новый экземпляр KeyTime, в котором свойство KeyTimeType было инициализировано значением указанного параметра.Creates a new KeyTime instance, with the KeyTimeType property initialized to the value of the specified parameter. |
GetHashCode() |
Возвращает целочисленный хэш-код, представляющий этот экземпляр.Returns an integer hash code representing this instance. |
ToString() |
Возвращает строковое представление этого экземпляра KeyTime.Returns a string representing this KeyTime instance. |
Операторы
Equality(KeyTime, KeyTime) |
Перегруженный оператор, который проверяет равенство двух структур KeyTime.Overloaded operator that compares two KeyTime structures for equality. |
Implicit(TimeSpan to KeyTime) |
Перегруженный оператор, который неявно преобразует значение TimeSpan в KeyTime.Overloaded operator that implicitly converts a TimeSpan to a KeyTime. |
Inequality(KeyTime, KeyTime) |
Перегруженный оператор, который проверяет неравенство двух структур KeyTime.Overloaded operator that compares two KeyTime structures for inequality. |