Class PercentTransform
Base class for percentage-based color transforms.
Inheritance
PercentTransform
Inherited Members
Namespace: DRIT.Spreadsheet.Drawing.Colors
Assembly: DRIT.Spreadsheet.dll
Syntax
public abstract class PercentTransform : ColorTransform
Constructors
PercentTransform()
Initializes a new instance of the PercentTransform class.
Declaration
public PercentTransform()
PercentTransform(decimal)
Initializes a new instance of the PercentTransform class with a value.
Declaration
public PercentTransform(decimal value)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | value | The percentage value. |
Properties
Ratio
Gets the ratio value (Value / 100000).
Declaration
public decimal Ratio { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Value
Specifies the percentage value.
Declaration
public decimal Value { get; set; }
Property Value
| Type | Description |
|---|---|
| decimal |
Methods
Equals(object)
Determines whether the specified object is equal to this transform.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare. |
Returns
| Type | Description |
|---|---|
| bool | True if equal, false otherwise. |
Overrides
EqualsType(object)
Determines whether the specified object is of the same derived type.
Declaration
protected abstract bool EqualsType(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare. |
Returns
| Type | Description |
|---|---|
| bool | True if same type, false otherwise. |
GetHashCode()
Gets the hash code for this transform.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |