AvatarColorPair Struct
Represents a background/foreground color pair used to render an avatar.
public readonly struct AvatarColorPair : IEquatable<AvatarColorPair>Remarks
This is a struct, so default bypasses the constructor and leaves both colors null. AvatarGenerator.CreateSvg rejects such an entry in the palette.
- Implements
Constructors
| Name | Description |
|---|---|
| AvatarColorPair(string, string) | Initializes a new instance of the AvatarColorPair struct. |
AvatarColorPair(string, string)
AvatarColorPair.csInitializes a new instance of the AvatarColorPair struct.
Properties
| Name | Description |
|---|---|
| BackgroundColor | Gets the background color. |
| ForegroundColor | Gets the foreground color. |
BackgroundColor
AvatarColorPair.csForegroundColor
AvatarColorPair.csMethods
| Name | Description |
|---|---|
| Equals(AvatarColorPair) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(AvatarColorPair)
public bool Equals(AvatarColorPair other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(AvatarColorPair, AvatarColorPair) | |
| operator !=(AvatarColorPair, AvatarColorPair) |
operator ==(AvatarColorPair, AvatarColorPair)
public static bool operator ==(AvatarColorPair left, AvatarColorPair right)No documentation is available.
operator !=(AvatarColorPair, AvatarColorPair)
public static bool operator !=(AvatarColorPair left, AvatarColorPair right)No documentation is available.