Class GradientVisual

    Definition

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

    A class encapsulating the property map of the gradient visual.

    public class GradientVisual : VisualMap, IDisposable
    Inheritance
    object
    VisualMap
    GradientVisual
    Implements
    System.IDisposable

    Constructors

    View Source

    GradientVisual()

    Default constructor of GradientVisual.

    Declaration
    public GradientVisual()

    Properties

    View Source

    Center

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

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

    EndPosition

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

    Declaration
    public Vector2 EndPosition { get; set; }
    Property Value
    Type Description
    Vector2
    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

    StartPosition

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

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

    StopColor

    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 PropertyArray StopColor { get; set; }
    Property Value
    Type Description
    PropertyArray
    View Source

    StopOffset

    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 PropertyArray StopOffset { get; set; }
    Property Value
    Type Description
    PropertyArray
    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

    Methods

    View Source

    ComposingPropertyMap()

    Compose the out visual map.

    Declaration
    protected override void ComposingPropertyMap()
    Overrides
    VisualMap.ComposingPropertyMap()

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX