BringIntoViewOptions.HorizontalOffset Property

Definition

Gets or sets the horizontal distance to add to the viewport-relative position of the TargetRect after satisfying the requested HorizontalAlignmentRatio.

public:
 property double HorizontalOffset { double get(); void set(double value); };
double HorizontalOffset();

void HorizontalOffset(double value);
public double HorizontalOffset { get; set; }
var double = bringIntoViewOptions.horizontalOffset;
bringIntoViewOptions.horizontalOffset = double;
Public Property HorizontalOffset As Double

Property Value

Double

double

The horizontal distance to add to the viewport-relative position of the TargetRect after satisfying the requested HorizontalAlignmentRatio.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

This provides a simple way to position an element a certain amount from the left or right edge of the viewport.

Applies to