Class NoxGridProgressColumn
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
Properties
BarBackColor
Color of the empty part of the bar (empty for light gray).
public Color BarBackColor { get; set; }
Property Value
BarColor
Bar color (empty for a lighter grid AccentColor).
public Color BarColor { get; set; }
Property Value
DefaultAlignment
Alignment of a new column of this kind.
protected override HorizontalAlignment DefaultAlignment { get; }
Property Value
DefaultSortMode
Sort mode of a new column of this kind.
protected override NoxGridColumnSortMode DefaultSortMode { get; }
Property Value
DefaultValueType
Value type of a new column of this kind (Nothing: text).
protected override Type DefaultValueType { get; }
Property Value
DefaultWidth
Width of a new column of this kind.
protected override int DefaultWidth { get; }
Property Value
Maximum
Value at which the bar is full. Default: 100d.
public double Maximum { get; set; }
Property Value
Minimum
Value at which the bar is empty. Default: 0d.
public double Minimum { get; set; }
Property Value
TextMode
Text drawn on the bar. Default: Percent.
public NoxProgressText TextMode { get; set; }
Property Value
Methods
FormatValue(object)
Converts a value to display text.
public override string FormatValue(object value)
Parameters
valueobject
Returns
GetFraction(object)
Ratio of the value (0 to 1). -1 if not a number.
public double GetFraction(object value)
Parameters
valueobject