示例#1
0
 /// <summary>
 ///     Set a linear gradient given a preset setting.
 /// </summary>
 /// <param name="Preset">The preset to be used.</param>
 /// <param name="Angle">
 ///     The interpolation angle ranging from 0 degrees to 359.9 degrees. 0 degrees mean from left to right,
 ///     90 degrees mean from top to bottom, 180 degrees mean from right to left and 270 degrees mean from bottom to top.
 ///     Accurate to 1/60000 of a degree.
 /// </param>
 public void SetLinearGradient(SLGradientPresetValues Preset, decimal Angle)
 {
     UseGradientLine = true;
     GradientColor.SetLinearGradient(Preset, Angle);
 }
示例#2
0
 /// <summary>
 ///     Set a linear gradient given a preset setting.
 /// </summary>
 /// <param name="Preset">The preset to be used.</param>
 /// <param name="Angle">
 ///     The interpolation angle ranging from 0 degrees to 359.9 degrees. 0 degrees mean from left to right,
 ///     90 degrees mean from top to bottom, 180 degrees mean from right to left and 270 degrees mean from bottom to top.
 ///     Accurate to 1/60000 of a degree.
 /// </param>
 public void SetLinearGradient(SLGradientPresetValues Preset, decimal Angle)
 {
     Type = SLFillType.GradientFill;
     GradientColor.SetLinearGradient(Preset, Angle);
 }