Method Assign
Assign(Color)
Copies the color data and related properties from the specified Color instance to the current instance.
public virtual void Assign(Color other)
Parameters
otherColorThe Color instance whose color data and properties are assigned to this instance. Cannot be null.
Remarks
After assignment, the current instance will have the same color data and properties
as the specified other. Any existing resources associated with this instance are replaced
with new resources.
Exceptions
- ArgumentNullException
Thrown when
otheris null.