Exemple #1
0
    /// <summary>
    /// Creates a new transform.
    /// </summary>
    /// <param name="mode">A <see cref="PathTransformMode"/> indicating how the given value should update the existing path.</param>
    /// <param name="value">The path value used to update the existing value.</param>
    public PathStringTransform(PathTransformMode mode, PathString value)
    {
        if (value.Value == null)
        {
            throw new ArgumentNullException(nameof(value));
        }

        Mode  = mode;
        Value = value;
    }
 /// <summary>
 /// Creates a new transform.
 /// </summary>
 /// <param name="mode">A <see cref="PathTransformMode"/> indicating how the given value should update the existing path.</param>
 /// <param name="value">The path value used to update the existing value.</param>
 public PathStringTransform(PathTransformMode mode, PathString value)
 {
     Mode  = mode;
     Value = value;
 }