Class GradientStop
Represents the gradient stop used by the presentation model.
Inherited Members
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public class GradientStop
Constructors
GradientStop()
Initializes a new instance of the gradient stop class.
Declaration
public GradientStop()
GradientStop(decimal, DrawingColor)
Initializes a new instance of the gradient stop class.
Declaration
public GradientStop(decimal position, DrawingColor color)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | position | The position of the object, in document units. |
| DrawingColor | color | The color supplied to this operation. |
Properties
Color
Gets or sets the color associated with this object.
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
DrawingColor
Gets or sets the drawing color associated with this object.
Declaration
public DrawingColor DrawingColor { get; set; }
Property Value
| Type | Description |
|---|---|
| DrawingColor |
Position
Gets or sets the position associated with this object.
Declaration
public decimal Position { get; set; }
Property Value
| Type | Description |
|---|---|
| decimal |
Transparency
Gets or sets the transparency associated with this object.
Declaration
public decimal Transparency { get; set; }
Property Value
| Type | Description |
|---|---|
| decimal |
Methods
Equals(GradientStop)
Determines whether this value matches the supplied value.
Declaration
protected bool Equals(GradientStop other)
Parameters
| Type | Name | Description |
|---|---|---|
| GradientStop | other | The other supplied to this operation. |
Returns
| Type | Description |
|---|---|
| bool | true if the operation succeeds; otherwise, false. |
Equals(object)
Determines whether this value matches the supplied value.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with this value. |
Returns
| Type | Description |
|---|---|
| bool | true if the operation succeeds; otherwise, false. |
Overrides
GetHashCode()
Returns the hash code for this value.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The get hash code value produced by the operation. |