Table of Contents

Class WatchlistCellValue

Namespace
ATAS.Indicators.Watchlist
Assembly
ATAS.Indicators.dll

The content of one Watchlist cell, published by a WatchlistColumn through Value. The platform draws it like the built-in cells (font, row height, selection), sorts the column by it and never calls the column while drawing or sorting.

Not in ATAS 8.0.15 yet: available from the next version.

public sealed class WatchlistCellValue
Inheritance
object
WatchlistCellValue
Extension Methods

Remarks

Immutable: publish a new instance to change the cell. A cell with a SortKey is right-aligned like the built-in numeric columns; a text-only cell is left-aligned.

Constructors

WatchlistCellValue(string, decimal?)

Initializes a cell value.

public WatchlistCellValue(string text, decimal? sortKey = null)

Parameters

text string

The text shown in the cell.

sortKey decimal?

The number the column is sorted by; null sorts by text.

Fields

Empty

An empty cell (sorted like a cell without data).

public static readonly WatchlistCellValue Empty

Field Value

WatchlistCellValue

Properties

BackgroundColor

Cell background, or null for the row background. Not drawn while the row is selected.

public Color? BackgroundColor { get; init; }

Property Value

Color?

SortKey

The number the column is sorted by, or null to sort the cell by its Text. Cells with a number come before text-only cells in ascending order.

public decimal? SortKey { get; }

Property Value

decimal?

Text

The text shown in the cell.

public string Text { get; }

Property Value

string

TextColor

Text color, or null for the regular text color of the Watchlist.

public Color? TextColor { get; init; }

Property Value

Color?

Methods

FromNumber(decimal, string?)

A numeric cell: value formatted with format (current culture) and sorted by the value.

public static WatchlistCellValue FromNumber(decimal value, string? format = null)

Parameters

value decimal
format string

Returns

WatchlistCellValue

ToString()

Returns the text shown in the cell.

public override string ToString()

Returns

string

The text.