C# Класс StdPaint.SevenSegmentDisplay

Provides rendering capabilities for a 4x7 seven-segment display.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BackBrush BufferBrush
ForeBrush BufferBrush
Location Point

Открытые методы

Метод Описание
Draw ( ConsoleBuffer buffer, Alignment alignment = Alignment.Left ) : void

Draws the display to the specified buffer.

SevenSegmentDisplay ( Point location, int digits, int value ) : System

Initializes a new instance of the StdPaint.DigitDisplay class with the specified location and value.

Приватные методы

Метод Описание
Update ( ) : void

Описание методов

Draw() публичный Метод

Draws the display to the specified buffer.
public Draw ( ConsoleBuffer buffer, Alignment alignment = Alignment.Left ) : void
buffer ConsoleBuffer The buffer to draw to.
alignment Alignment The alignment of the display to the draw position.
Результат void

SevenSegmentDisplay() публичный Метод

Initializes a new instance of the StdPaint.DigitDisplay class with the specified location and value.
public SevenSegmentDisplay ( Point location, int digits, int value ) : System
location Point The location of the display.
digits int The minimum number of digits to display.
value int The value of the display.
Результат System

Описание свойств

BackBrush публичное свойство

The background brush of the display.
public BufferBrush,StdPaint BackBrush
Результат BufferBrush

ForeBrush публичное свойство

The foreground brush of the display.
public BufferBrush ForeBrush
Результат BufferBrush

Location публичное свойство

The location of the display.
public Point Location
Результат Point