Class GradientVisual

    Definition

    Namespace:
    Tizen.NUI.Visuals
    Assembly:
    Tizen.NUI.dll

    Visual to render gradient.

    public class GradientVisual : VisualBase, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    VisualBase
    GradientVisual
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Constructors

    View Source

    GradientVisual()

    Creates an visual object.

    Declaration
    public GradientVisual()

    Properties

    View Source

    Center

    Gets or sets the center point of a radial gradient.
    Mandatory for radial and conic.

    Declaration
    public UIVector2 Center { get; set; }
    Property Value
    Type Description
    UIVector2
    View Source

    EndPosition

    Gets or sets the end position of a linear gradient.
    Mandatory for linear.

    Declaration
    public UIVector2 EndPosition { get; set; }
    Property Value
    Type Description
    UIVector2
    View Source

    Radius

    Gets or sets the size of the radius of a radial gradient.
    Mandatory for radial.

    Declaration
    public float Radius { get; set; }
    Property Value
    Type Description
    float
    View Source

    SpreadMethod

    Gets or sets indications of what happens if the gradient starts or ends inside the bounds of the target rectangle.
    If not supplied, the default is GradientVisualSpreadMethodType.Pad.
    Optional.

    Declaration
    public GradientVisualSpreadMethodType SpreadMethod { get; set; }
    Property Value
    Type Description
    GradientVisualSpreadMethodType
    View Source

    StartAngle

    Gets or sets the start angle of the conic gradient.
    Mandatory for conic.
    Optional.

    Declaration
    public float StartAngle { get; set; }
    Property Value
    Type Description
    float
    View Source

    StartOffset

    Gets or sets the gradient's start position offset.
    If not supplied, the default is 0.0f.
    Optional.

    Declaration
    public float StartOffset { get; set; }
    Property Value
    Type Description
    float
    View Source

    StartPosition

    Gets or sets the start position of a linear gradient.
    Mandatory for linear.

    Declaration
    public UIVector2 StartPosition { get; set; }
    Property Value
    Type Description
    UIVector2
    View Source

    StopColors

    Gets or sets the color at the stop offsets.
    A PropertyArray of color.
    At least 2 values are required to show a gradient.
    Mandatory.

    Declaration
    public IList<UIColor> StopColors { get; set; }
    Property Value
    Type Description
    IList<><UIColor>
    View Source

    StopOffsets

    Gets or sets all the stop offsets.
    A PropertyArray of float.
    If not supplied, the default is 0.0f and 1.0f.
    Optional.

    Declaration
    public IList<float> StopOffsets { get; set; }
    Property Value
    Type Description
    IList<><float>
    View Source

    Units

    Gets or sets descriptions of the coordinate system for certain attributes of the points in a gradient.
    If not supplied, the default is GradientVisualUnitsType.ObjectBoundingBox.
    Optional.

    Declaration
    public GradientVisualUnitsType Units { get; set; }
    Property Value
    Type Description
    GradientVisualUnitsType

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX