API Reference
Class
ConsoleFontWatcher
Polls the current Windows console font without creating a thread or timer.
Inheritance
- Object
- ConsoleFontWatcher
Constructors
ConsoleFontWatcher 2 overloads
public ConsoleFontWatcher() #Creates a watcher with a one-second polling interval.
public ConsoleFontWatcher(TimeSpan pollingInterval) #Creates a watcher with the specified polling interval.
Parameters
- pollingInterval System.TimeSpan
- Minimum time between native font reads; nonpositive values use one second.
Methods
public Boolean CheckChanged(out String? face, out Int32 height) #Returns:
BooleanReads the font at most once per interval and reports a changed face or height.
Parameters
- face System.String?
- The current face when a font reading succeeds; otherwise null.
- height System.Int32
- The current font height when a font reading succeeds; otherwise zero.
Returns
True when a successful reading differs from the previous successful reading.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?