GradientStop.Offset 属性

定义

获取渐变向量中渐变停止点的位置。Gets the location of the gradient stop within the gradient vector.

public:
 property double Offset { double get(); void set(double value); };
public double Offset { get; set; }
member this.Offset : double with get, set
Public Property Offset As Double

属性值

沿渐变向量的该渐变停止点的相对位置。The relative location of this gradient stop along the gradient vector. 默认值为 0.0。The default value is 0.0.

注解

如果值为 0.0, 则指定停止点位于渐变向量的开头, 而值1.0 指定停止置于渐变向量的末尾。A value of 0.0 specifies that the stop is positioned at the beginning of the gradient vector, while a value of 1.0 specifies that the stop is positioned at the end of the gradient vector.

依赖项属性信息Dependency Property Information

标识符字段Identifier field OffsetProperty
元数据属性设置为trueMetadata properties set to true NoneNone

适用于

另请参阅