SvgGradientSpreadMethod.cs 1.44 KB
Newer Older
davescriven's avatar
davescriven committed
1
2
using System;
using System.Collections.Generic;
3
using System.ComponentModel;
davescriven's avatar
davescriven committed
4
5
6
7
8
using System.Linq;
using System.Text;

namespace Svg
{
9
10
11
12
13
14
    /// <summary>Indicates what happens if the gradient starts or ends inside the bounds of the target rectangle.</summary>
    /// <remarks>
    ///     <para>Possible values are: 'pad', which says to use the terminal colors of the gradient to fill the remainder of the target region, 'reflect', which says to reflect the gradient pattern start-to-end, end-to-start, start-to-end, etc. continuously until the target rectangle is filled, and repeat, which says to repeat the gradient pattern start-to-end, start-to-end, start-to-end, etc. continuously until the target region is filled.</para>
    ///     <para>If the attribute is not specified, the effect is as if a value of 'pad' were specified.</para>
    /// </remarks>
    [TypeConverter(typeof(SvgGradientSpreadMethodConverter))]
davescriven's avatar
davescriven committed
15
16
    public enum SvgGradientSpreadMethod
    {
17
        /// <summary>Use the terminal colors of the gradient to fill the remainder of the target region.</summary>
davescriven's avatar
davescriven committed
18
        Pad,
19
20

        /// <summary>Reflect the gradient pattern start-to-end, end-to-start, start-to-end, etc. continuously until the target rectangle is filled.</summary>
davescriven's avatar
davescriven committed
21
        Reflect,
22
23

        /// <summary>Repeat the gradient pattern start-to-end, start-to-end, start-to-end, etc. continuously until the target region is filled.</summary>
davescriven's avatar
davescriven committed
24
25
26
        Repeat
    }
}