Share via


CompositionVisualSurface.SourceOffset Property

Definition

Gets or sets the coordinates of the top-left corner of the part of the visual surface used for rendering.

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

void SourceOffset(float2 value);
public Vector2 SourceOffset { get; set; }
var vector2 = compositionVisualSurface.sourceOffset;
compositionVisualSurface.sourceOffset = vector2;
Public Property SourceOffset As Vector2

Property Value

Vector2 Vector2

float2

The coordinates of the top-left corner of the part of the visual surface used for rendering.

Remarks

The coordinates are relative to the source visual.

Applies to