Share via


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.

Remarks

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

Applies to