Class LinearGradient

    Definition

    Namespace:
    Tizen.NUI.BaseComponents.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.

    public class LinearGradient : Gradient, INotifyPropertyChanged, IDisposable
    Inheritance
    object
    BindableObject
    Tizen.NUI.Binding.Element
    BaseHandle
    Gradient
    LinearGradient
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable

    Constructors

    View Source

    LinearGradient()

    Creates an initialized linear gradient.

    Declaration
    public LinearGradient()

    Methods

    View Source

    GetBounds(ref Position2D, ref Position2D)

    Gets the linear gradient bounds.

    Declaration
    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
    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
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX