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>?)()Constructor

Properties

9
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
ThumbCharCharCharacter to use for the scrollbar thumb. Default is █.
TrackCharCharCharacter to use for the scrollbar track. Default is │.

Methods

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

Operators

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