BringIntoViewOptions.TargetRect Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for