Επεξεργασία

Κοινή χρήση μέσω


ColorBlend.Positions Property

Definition

Gets or sets the positions along a gradient line.

public:
 property cli::array <float> ^ Positions { cli::array <float> ^ get(); void set(cli::array <float> ^ value); };
public float[] Positions { get; set; }
member this.Positions : single[] with get, set
Public Property Positions As Single()

Property Value

Single[]

An array of values that specify percentages of distance along the gradient line.

Remarks

The elements of this array specify percentages of distance along the gradient line. For example, an element value of 0.2f specifies that this point is 20 percent of the total distance from the starting point. The elements in this array are represented by float values between 0.0f and 1.0f, and the first element of the array must be 0.0f and the last element must be 1.0f.

Along with the Colors property, this property defines a multicolor gradient.

Applies to