ColorBlend.Positions 属性

定义

获取或设置沿渐变线的位置。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()

属性值

Single[]

值数组,指定沿渐变线距离的百分比。An array of values that specify percentages of distance along the gradient line.

注解

此数组的元素指定沿渐变线的距离百分比。The elements of this array specify percentages of distance along the gradient line. 例如,如果元素值为 0.2 f,则指定该点是与起点的总距离的20%。For example, an element value of 0.2f specifies that this point is 20 percent of the total distance from the starting point. 此数组中的元素由 0.0 f 和 1.0 f 之间的浮点值表示,数组的第一个元素必须为 0.0 f,最后一个元素必须为 1.0 f。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.

Colors此属性与属性一起定义多色渐变。Along with the Colors property, this property defines a multicolor gradient.

适用于