Class LinearGradient
Definition
- Namespace:
- Tizen.NUI.BaseComponents.VectorGraphics
- Assembly:
- Tizen.NUI.dll
- API Level:
- 9
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#Copypublic class LinearGradient : Gradient, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
Declaration
C#Copypublic LinearGradient()
API Level: 9
Methods
Declaration
C#Copypublic 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. |
API Level: 9
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#Copypublic 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. |
API Level: 9
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable