FindMyFiles

FindMyFiles.ViewModels

ResultsPublication Struct

Describes one published result set so the view can place the viewport: reset origins scroll to the top, position-preserving origins scroll to RestoreIndex. The seeded index window is where a previously selected row may be re-found.

public readonly record struct ResultsPublication : System.IEquatable<FindMyFiles.ViewModels.ResultsPublication>

Implements System.IEquatable<ResultsPublication>

Constructors

ResultsPublication(RequeryOrigin, Nullable<int>, int, int) Constructor

Describes one published result set so the view can place the viewport: reset origins scroll to the top, position-preserving origins scroll to RestoreIndex. The seeded index window is where a previously selected row may be re-found.

public ResultsPublication(FindMyFiles.ViewModels.RequeryOrigin Origin, System.Nullable<int> RestoreIndex, int FirstSeededIndex, int LastSeededIndex);

Parameters

Origin RequeryOrigin

Why the requery ran — decides reset vs. position restore.

RestoreIndex System.Nullable<System.Int32>

First visible row index to scroll back to for a position-preserving origin; null for reset origins (scroll to top).

FirstSeededIndex System.Int32

First row index that was prefetched and is thus realizable without a fetch — lower bound of the selection re-find window.

LastSeededIndex System.Int32

Last prefetched row index — upper bound of the selection re-find window.

Properties

ResultsPublication.FirstSeededIndex Property

First row index that was prefetched and is thus realizable without a fetch — lower bound of the selection re-find window.

public int FirstSeededIndex { get; init; }

Property Value

System.Int32

ResultsPublication.LastSeededIndex Property

Last prefetched row index — upper bound of the selection re-find window.

public int LastSeededIndex { get; init; }

Property Value

System.Int32

ResultsPublication.Origin Property

Why the requery ran — decides reset vs. position restore.

public FindMyFiles.ViewModels.RequeryOrigin Origin { get; init; }

Property Value

RequeryOrigin

ResultsPublication.RestoreIndex Property

First visible row index to scroll back to for a position-preserving origin; null for reset origins (scroll to top).

public System.Nullable<int> RestoreIndex { get; init; }

Property Value

System.Nullable<System.Int32>