Share via


CompositionShape.Offset 属性

定义

获取或设置形状相对于其 ShapeVisual 的偏移量。

public:
 property float2 Offset { float2 get(); void set(float2 value); };
float2 Offset();

void Offset(float2 value);
public Vector2 Offset { get; set; }
var vector2 = compositionShape.offset;
compositionShape.offset = vector2;
Public Property Offset As Vector2

属性值

Vector2 Vector2

float2

形状相对于其 ShapeVisual 的偏移量。

适用于