KeyTime.FromPercent(Double) Метод
Определение
Создает новый экземпляр KeyTime, в котором свойство KeyTimeType было инициализировано значением указанного параметра.Creates a new KeyTime instance, with the KeyTimeType property initialized to the value of the specified parameter.
public:
static System::Windows::Media::Animation::KeyTime FromPercent(double percent);
public static System.Windows.Media.Animation.KeyTime FromPercent (double percent);
static member FromPercent : double -> System.Windows.Media.Animation.KeyTime
Public Shared Function FromPercent (percent As Double) As KeyTime
Параметры
Возвращаемое значение
Новый экземпляр KeyTime, инициализированный значением percent
.A new KeyTime instance, initialized to the value of percent
.
Исключения
Значение percent
меньше 0,0 или больше 1,0.percent
is less than 0.0 or greater than 1.0.
Комментарии
Параметр percent передается в виде Double, в диапазоне между значениями 0,0 и 1,0.The percent parameter is passed as a double, ranging between the values 0.0 and 1.0.