ScrollbarSettings

Class
Namespace: RazorConsole.Core.Rendering
Assembly: RazorConsole.Core

Definition

public sealed record ScrollbarSettings : IEquatable<ScrollbarSettings>

Constructors

1
NameTypeDescription
ScrollbarSettings(char, char, Color?, Color?, Color?, Color?, int, Action<FocusEventArgs>?, Action<FocusEventArgs>?, ScrollbarPlacement, ScrollbarVisibility)()Constructor—

Properties

11
NameTypeDescription
Appearance
MinThumbHeightInt32Minimum height for the thumb in characters.
ThumbColorColorColor for the thumb. Default is White.
ThumbFocusedColorColorColor for the track when scrollbar is focused. Default is DeepSkyBlue1.
TrackColorColorColor for the track. Default is Gray.
TrackFocusedColorColorColor for the track when scrollbar is focused. Default is Gray74.
Events
OnFocusInCallbackAction<FocusEventArgs>Callback, that called after focus in event, can be used for any UI changes outside scrollbar.
OnFocusOutCallbackAction<FocusEventArgs>Callback, that called after focus out event, can be used for any UI changes outside scrollbar.
Other
PlacementScrollbarPlacementWhere a scroll container draws its scrollbar. Default is Inset.
ThumbCharCharCharacter to use for the scrollbar thumb. Default is ┃.
TrackCharCharCharacter to use for the scrollbar track. Default is ┃.
VisibilityScrollbarVisibilityWhen a scroll container shows its scrollbar. Default is Auto.

Methods

4
NameTypeDescription
Equals(ScrollbarSettings?)()Boolean—
Equals(object?)()Boolean—
GetHashCode()Int32—
ToString()String—

Operators

2
NameTypeDescription
operator ==(ScrollbarSettings?, ScrollbarSettings?)()Boolean—
operator !=(ScrollbarSettings?, ScrollbarSettings?)()Boolean—