/// <summary> /// Determines if this draw operation equals another. /// </summary> /// <param name="transform">The transform of the other draw operation.</param> /// <param name="brush">The fill of the other draw operation.</param> /// <param name="pen">The stroke of the other draw operation.</param> /// <param name="rect">The rectangle of the other draw operation.</param> /// <param name="boxShadows">The box shadow parameters of the other draw operation</param> /// <returns>True if the draw operations are the same, otherwise false.</returns> /// <remarks> /// The properties of the other draw operation are passed in as arguments to prevent /// allocation of a not-yet-constructed draw operation object. /// </remarks> public bool Equals(Matrix transform, IBrush brush, IPen pen, RoundedRect rect, BoxShadows boxShadows) { return(transform == Transform && Equals(brush, Brush) && Equals(Pen, pen) && BoxShadows.Equals(boxShadows) && rect.Equals(Rect)); }
/// <summary> /// Determines if this draw operation equals another. /// </summary> /// <param name="transform">The transform of the other draw operation.</param> /// <param name="material">The fill of the other draw operation.</param> /// <param name="rect">The rectangle of the other draw operation.</param> /// <returns>True if the draw operations are the same, otherwise false.</returns> /// <remarks> /// The properties of the other draw operation are passed in as arguments to prevent /// allocation of a not-yet-constructed draw operation object. /// </remarks> public bool Equals(Matrix transform, IExperimentalAcrylicMaterial material, RoundedRect rect) { return(transform == Transform && Equals(material, Material) && rect.Equals(Rect)); }