Class Gradient

Definition

Namespace:
Tizen.NUI.BaseComponents.VectorGraphics
Assembly:
Tizen.NUI.dll
API Level:
9

An abstract class representing the gradient fill of the Shape. It contains the information about the gradient colors and their arrangement inside the gradient bounds. The gradients bounds are defined in the LinearGradient or RadialGradient class, depending on the type of the gradient to be used.

C#
Copy
public class Gradient : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
Inheritance
System.Object
Tizen.NUI.Binding.Element
Gradient
Derived
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable

Properties

View Source

ColorStops

The parameters list of the colors of the gradient and their position.

Declaration
C#
Copy
public ReadOnlyCollection<ColorStop> ColorStops { get; set; }
Property Value
Type Description
System.Collections.ObjectModel.ReadOnlyCollection<ColorStop>
Exceptions
Type Condition
System.ArgumentNullException

Thrown when value is null.

API Level: 9
View Source

Spread

Specifying how to fill the area outside the gradient bounds.

Declaration
C#
Copy
public SpreadType Spread { get; set; }
Property Value
Type Description
SpreadType
API Level: 9

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable