Class GradientFill
Represents the gradient fill used by the presentation model.
Inherited Members
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public class GradientFill
Constructors
GradientFill()
Initializes a new instance of the gradient fill class.
Declaration
public GradientFill()
Properties
Angle
Gets or sets the angle associated with this object.
Declaration
public int Angle { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
GradientStops
Gets the collection of gradient stops associated with this object.
Declaration
public GradientStopCollection GradientStops { get; }
Property Value
| Type | Description |
|---|---|
| GradientStopCollection |
RotateWithShape
Gets or sets the rotate with shape associated with this object.
Declaration
public bool RotateWithShape { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Type
Gets or sets the type associated with this object.
Declaration
public GradientType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| GradientType |
Methods
Equals(GradientFill)
Determines whether this value matches the supplied value.
Declaration
protected bool Equals(GradientFill other)
Parameters
| Type | Name | Description |
|---|---|---|
| GradientFill | 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. |
Overrides
SetDirection(GradientDirection)
Sets the direction for this gradient fill.
Declaration
public void SetDirection(GradientDirection direction)
Parameters
| Type | Name | Description |
|---|---|---|
| GradientDirection | direction | The direction supplied to this operation. |