Show / Hide Table of Contents

Class LinearGradient

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

Inheritance
object
AbstractBindable
AbstractDecoratable<IGradientDecorator>
AbstractGradient
LinearGradient
Implements
IBindable
IGradient
IDecoratable<IGradientDecorator>
IDecoratable
INotifyPropertyChanged
Inherited Members
AbstractGradient.GradientStops
AbstractGradient.WrapGradient
AbstractGradient.GradientChanged
AbstractGradient.Move(float)
AbstractDecoratable<IGradientDecorator>.Decorators
AbstractDecoratable<IGradientDecorator>.AddDecorator(IGradientDecorator)
AbstractDecoratable<IGradientDecorator>.RemoveDecorator(IGradientDecorator)
AbstractDecoratable<IGradientDecorator>.RemoveAllDecorators()
AbstractBindable.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Presets.Textures.Gradients
Assembly: RGB.NET.Presets.dll
Syntax
public sealed class LinearGradient : AbstractGradient, IBindable, IGradient, IDecoratable<IGradientDecorator>, IDecoratable, INotifyPropertyChanged

Constructors

| Edit this page View Source

LinearGradient()

Initializes a new instance of the AbstractGradient class.

Declaration
public LinearGradient()
| Edit this page View Source

LinearGradient(params GradientStop[])

Initializes a new instance of the AbstractGradient class.

Declaration
public LinearGradient(params GradientStop[] gradientStops)
Parameters
Type Name Description
GradientStop[] gradientStops

The stops with which the gradient should be initialized.

| Edit this page View Source

LinearGradient(bool, params GradientStop[])

Initializes a new instance of the AbstractGradient class.

Declaration
public LinearGradient(bool wrapGradient, params GradientStop[] gradientStops)
Parameters
Type Name Description
bool wrapGradient

Specifies whether the gradient should wrapp or not (see WrapGradient for an example of what this means).

GradientStop[] gradientStops

The stops with which the gradient should be initialized.

Methods

| Edit this page View Source

GetColor(float)

Gets the Color of the IGradient on the specified offset.

Declaration
public override Color GetColor(float offset)
Parameters
Type Name Description
float offset

The percentage offset to take the Color from.

Returns
Type Description
Color

The Color at the specific offset.

Overrides
AbstractGradient.GetColor(float)

Implements

IBindable
IGradient
IDecoratable<T>
IDecoratable
INotifyPropertyChanged
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX