Sdílet prostřednictvím


BringIntoViewOptions.TargetRect Property

Definition

Gets or sets the area of an element to bring into view.

public:
 property IReference<Rect> ^ TargetRect { IReference<Rect> ^ get(); void set(IReference<Rect> ^ value); };
IReference<Rect> TargetRect();

void TargetRect(IReference<Rect> value);
public System.Nullable<Rect> TargetRect { get; set; }
var iReference = bringIntoViewOptions.targetRect;
bringIntoViewOptions.targetRect = iReference;
Public Property TargetRect As Nullable(Of Rect)

Property Value

A rectangle that defines the area of an element to bring into view.

Remarks

Set the TargetRect to specify a particular part of an element to be brought into view. For example, if you need to scroll a large image into view, you could define a specific part of the image that should be made visible. If the TargetRect is null, the element's bounding rect is used as the target.

Applies to