ScrollViewportWidget

Class

Shows a vertical window onto taller content, like CSS overflow: scroll without the scrollbar. The content is measured with unbounded height, so the viewport grows with its content until its parent limits it.

Namespace: RazorConsole.Core.Layout
Assembly: RazorConsole.Core

Definition

public sealed class ScrollViewportWidget : Widget

Constructors

1
NameTypeDescription
ScrollViewportWidget(string, Widget, int, string?, IReadOnlyDictionary<string, string?>?, int)()Constructor—

Properties

7
NameTypeDescription
Appearance
ContentHeightInt32Gets the height of the content measured with unbounded height.
ViewportHeightInt32Gets the height of the visible window after the last arrange.
Other
ChildWidget—
MaxTopInt32Gets the largest valid Top; known in the same pass that arranges the content.
RequestedTopInt32Gets the offset asked for by the caller, before clamping. Ignored when ScrollId is set.
ScrollIdStringGets the id under which engine-owned scroll state is kept, or null for a fixed offset.
TopInt32Gets the offset actually applied by the last arrange, clamped to [0, MaxTop].

Methods

3
NameTypeDescription
ArrangeCore(LayoutContext, LayoutRect)()Method—
MeasureCore(LayoutContext, BoxConstraints)()LayoutSize—
PaintCore(PaintContext)()Method—