Class LinearGradient
Definition
- Namespace:
- Tizen.NUI.Base
Components .VectorGraphics
- Assembly:
- Tizen.NUI.dll
A class representing the linear gradient fill of the Shape object. Besides the class inherited from the Gradient class, it enables setting and getting the linear gradient bounds. The behavior outside the gradient bounds depends on the value specified in the spread API.
C#
Copy
public class LinearGradient : Gradient, INotifyPropertyChanged, IDisposable
- Inheritance
- Implements
-
System.
Component Model. INotify Property Changed System.IDisposable
Constructors
Declaration
C#
Copy
public LinearGradient()
Methods
Declaration
C#
Copy
public void GetBounds(ref Position2D firstPoint, ref Position2D secondPoint)
Parameters
Type | Name | Description |
---|---|---|
Position2D | firstPoint | The first point used to determine the gradient bounds. |
Position2D | secondPoint | The second point used to determine the gradient bounds. |
View Source
SetBounds(Position2D, Position2D)
Sets the linear gradient bounds.
The bounds of the linear gradient are defined by two parallel lines crossing the given points firstPoint and secondPoint, respectively. Both lines are perpendicular to the line linking firstPoint and secondPoint.
Declaration
C#
Copy
public void SetBounds(Position2D firstPoint, Position2D secondPoint)
Parameters
Type | Name | Description |
---|---|---|
Position2D | firstPoint | The first point used to determine the gradient bounds. |
Position2D | secondPoint | The second point used to determine the gradient bounds. |
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable