BringIntoViewOptions
BringIntoViewOptions
BringIntoViewOptions
BringIntoViewOptions
Class
Definition
Represents the options that can be applied when an element is brought into view.
public : sealed class BringIntoViewOptions : IBringIntoViewOptionspublic sealed class BringIntoViewOptions : IBringIntoViewOptionsPublic NotInheritable Class BringIntoViewOptions Implements IBringIntoViewOptions// This API is not available in Javascript.
- Attributes
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
Remarks
For more info, see the UIElement.StartBringIntoView method.
Constructors
BringIntoViewOptions() BringIntoViewOptions() BringIntoViewOptions() BringIntoViewOptions()
Initializes a new instance of the BringIntoViewOptions class.
public : BringIntoViewOptions()public BringIntoViewOptions()Public Sub New()// This API is not available in Javascript.
Properties
AnimationDesired AnimationDesired AnimationDesired AnimationDesired
Gets or sets a value that indicates whether to use animation when the element is brought into view.
public : PlatForm::Boolean AnimationDesired { get; set; }public bool AnimationDesired { get; set; }Public ReadWrite Property AnimationDesired As bool// This API is not available in Javascript.
- Value
- PlatForm::Boolean bool bool bool
true to use animation; otherwise, false. The default is true.
TargetRect TargetRect TargetRect TargetRect
Gets or sets the area of an element to bring into view.
public : IReference<Rect> TargetRect { get; set; }public Nullable<Rect> TargetRect { get; set; }Public ReadWrite Property TargetRect As Nullable<Rect>// This API is not available in Javascript.
- Value
- IReference<Rect> Nullable<Rect> Nullable<Rect> Nullable<Rect>
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.