Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A class encapsulating the property map of the gradient visual.
public class GradientVisual : VisualMap
- Inheritance
-
System.Object
GradientVisual
Constructors
Declaration
API Level: 3
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
API Level: 3
View Source
EndPosition
Gets or sets the end position of a linear gradient.
Mandatory for linear.
Declaration
public Vector2 EndPosition { get; set; }
Property Value
API Level: 3
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
API Level: 3
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
API Level: 3
View Source
StartPosition
Gets or sets the start position of a linear gradient.
Mandatory for linear.
Declaration
public Vector2 StartPosition { get; set; }
Property Value
API Level: 3
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
API Level: 3
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
API Level: 3
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
API Level: 3
Methods
View Source
ComposingPropertyMap()
Compose the out visual map.
Declaration
protected override void ComposingPropertyMap()
Overrides
API Level: 3