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#
Copy
public class LinearGradient : Gradient, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
Inheritance
System.Object
Tizen.NUI.Binding.Element
LinearGradient
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable

Constructors

View Source

LinearGradient()

Creates an initialized linear gradient.

Declaration
C#
Copy
public LinearGradient()
API Level: 9

Methods

View Source

GetBounds(ref Position2D, ref Position2D)

Gets the linear gradient bounds.

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.

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#
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.

API Level: 9

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable