Class ColorValue
Assembly: SharpRtfConvert.dll
Syntax
public sealed class ColorValue : IEquatable<ColorValue>
Constructors
|
Edit this page
View Source
ColorValue(byte, byte, byte)
Declaration
public ColorValue(byte red, byte green, byte blue)
Parameters
Fields
|
Edit this page
View Source
Black
Declaration
public static readonly ColorValue Black
Field Value
|
Edit this page
View Source
White
Declaration
public static readonly ColorValue White
Field Value
Properties
|
Edit this page
View Source
Blue
Declaration
public byte Blue { get; }
Property Value
|
Edit this page
View Source
Green
Declaration
public byte Green { get; }
Property Value
|
Edit this page
View Source
Red
Declaration
Property Value
Methods
|
Edit this page
View Source
Clone()
Declaration
public ColorValue Clone()
Returns
|
Edit this page
View Source
Equals(ColorValue?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ColorValue? other)
Parameters
| Type |
Name |
Description |
| ColorValue |
other |
An object to compare with this object.
|
Returns
| Type |
Description |
| bool |
true if the current object is equal to the other parameter; otherwise, false.
|
|
Edit this page
View Source
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
The object to compare with the current object.
|
Returns
| Type |
Description |
| bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
|
Edit this page
View Source
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| int |
A hash code for the current object.
|
Overrides
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
Operators
|
Edit this page
View Source
operator ==(ColorValue?, ColorValue?)
Declaration
public static bool operator ==(ColorValue? x, ColorValue? y)
Parameters
Returns
|
Edit this page
View Source
operator !=(ColorValue?, ColorValue?)
Declaration
public static bool operator !=(ColorValue? x, ColorValue? y)
Parameters
Returns
Implements