Table of Contents

Class NoxGridProgressColumn

Namespace
Nox.Grid.WinForms
Assembly
Nox.Grid.WinForms.dll

Progress bar column. Draws a bar proportional to the numeric value between Minimum and Maximum (default 0 to 100). Values are set from code (no user editing).

public class NoxGridProgressColumn : NoxGridColumn, IComponent, IDisposable
Inheritance
NoxGridProgressColumn
Implements
Inherited Members

Constructors

NoxGridProgressColumn()

Creates a progress bar column.

public NoxGridProgressColumn()

NoxGridProgressColumn(string, string)

Creates a progress bar column with a name and header text.

public NoxGridProgressColumn(string name, string headerText)

Parameters

name string
headerText string

Properties

BarBackColor

Color of the empty part of the bar (empty for light gray).

public Color BarBackColor { get; set; }

Property Value

Color

BarColor

Bar color (empty for a lighter grid AccentColor).

public Color BarColor { get; set; }

Property Value

Color

DefaultAlignment

Alignment of a new column of this kind.

protected override HorizontalAlignment DefaultAlignment { get; }

Property Value

HorizontalAlignment

DefaultSortMode

Sort mode of a new column of this kind.

protected override NoxGridColumnSortMode DefaultSortMode { get; }

Property Value

NoxGridColumnSortMode

DefaultValueType

Value type of a new column of this kind (Nothing: text).

protected override Type DefaultValueType { get; }

Property Value

Type

DefaultWidth

Width of a new column of this kind.

protected override int DefaultWidth { get; }

Property Value

int

Maximum

Value at which the bar is full. Default: 100d.

public double Maximum { get; set; }

Property Value

double

Minimum

Value at which the bar is empty. Default: 0d.

public double Minimum { get; set; }

Property Value

double

TextMode

Text drawn on the bar. Default: Percent.

public NoxProgressText TextMode { get; set; }

Property Value

NoxProgressText

Methods

FormatValue(object)

Converts a value to display text.

public override string FormatValue(object value)

Parameters

value object

Returns

string

GetFraction(object)

Ratio of the value (0 to 1). -1 if not a number.

public double GetFraction(object value)

Parameters

value object

Returns

double