HtmlForgeX

API Reference

Class

TargetsBuilder

Namespace HtmlForgeX
Assembly HtmlForgeX

Builds target columns and styles.

Inheritance

  • Object
  • TargetsBuilder

Constructors

public TargetsBuilder(List<String> headers) #

Create a target builder for the given headers.

Parameters

headers System.Collections.Generic.List{System.String} requiredposition: 0

Methods

Background 2 overloads
public TargetsBuilder Background(RGBColor color) #
Returns: TargetsBuilder

Set background color (string CSS/hex).

Parameters

color System.String requiredposition: 0
Background(HtmlForgeX.RGBColor color) #

Set background color (typed RGBColor).

Parameters

color HtmlForgeX.RGBColor required
Border 4 overloads
public TargetsBuilder Border(DtBorderSpec spec) #
Returns: TargetsBuilder

Set border via CSS shorthand (e.g., "1px solid #000").

Parameters

css System.String requiredposition: 0
Border(HtmlForgeX.DtBorderSpec spec) #

Set border via typed spec.

Parameters

spec HtmlForgeX.DtBorderSpec required
public TargetsBuilder Border(DtBorderWidth width, DtBorderStyle style, RGBColor color) #
Returns: TargetsBuilder
EditorBrowsable(2) Obsolete("Use Border(DtBorderWidth, LineStyle, RGBColor) instead.")

Set border via typed components.

Parameters

width HtmlForgeX.DtBorderWidth requiredposition: 0
style HtmlForgeX.LineStyle requiredposition: 1
color HtmlForgeX.RGBColor requiredposition: 2
Border(HtmlForgeX.DtBorderWidth width, HtmlForgeX.DtBorderStyle style, HtmlForgeX.RGBColor color) #

Set border via typed components (legacy overload).

Parameters

width HtmlForgeX.DtBorderWidth required
style HtmlForgeX.DtBorderStyle required
color HtmlForgeX.RGBColor required
public TargetsBuilder BorderDashed(RGBColor color, DtBorderWidth width = Thin) #
Returns: TargetsBuilder

Dashed border with typed color and width.

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
width HtmlForgeX.DtBorderWidth = Thin optionalposition: 1
public TargetsBuilder BorderDotted(RGBColor color, DtBorderWidth width = Thin) #
Returns: TargetsBuilder

Dotted border with typed color and width.

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
width HtmlForgeX.DtBorderWidth = Thin optionalposition: 1
public TargetsBuilder BorderNone() #
Returns: TargetsBuilder

No border.

public TargetsBuilder BorderSolid(RGBColor color, DtBorderWidth width = Thin) #
Returns: TargetsBuilder

Solid border with typed color and width.

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
width HtmlForgeX.DtBorderWidth = Thin optionalposition: 1
Column 2 overloads
public TargetsBuilder Column(String name) #
Returns: TargetsBuilder

Target a column by header name.

Parameters

name System.String requiredposition: 0
public TargetsBuilder Column(Int32 index) #
Returns: TargetsBuilder

Target a column by index.

Parameters

index System.Int32 requiredposition: 0
Columns 4 overloads
public TargetsBuilder Columns(IEnumerable<Int32> indices) #
Returns: TargetsBuilder

Target multiple columns by header name.

Parameters

names System.String[] requiredposition: 0
Columns(System.Collections.Generic.IEnumerable{System.String} names) #

Target multiple columns by header name (IEnumerable).

Parameters

names System.Collections.Generic.IEnumerable{System.String} required
public TargetsBuilder Columns(params Int32[] indices) #
Returns: TargetsBuilder

Target multiple columns by index.

Parameters

indices System.Int32[] requiredposition: 0
Columns(System.Collections.Generic.IEnumerable{System.Int32} indices) #

Target multiple columns by index (IEnumerable).

Parameters

indices System.Collections.Generic.IEnumerable{System.Int32} required
public TargetsBuilder ColumnsRange(Int32 startInclusive, Int32 endInclusive) #
Returns: TargetsBuilder

Target a contiguous range of column indexes.

Parameters

startInclusive System.Int32 requiredposition: 0
endInclusive System.Int32 requiredposition: 1
public TargetsBuilder Css(Dictionary<String, String> css) #
Returns: TargetsBuilder

Add custom CSS properties to the cell.

Parameters

css System.Collections.Generic.Dictionary{System.String,System.String} requiredposition: 0
public TargetsBuilder Danger() #
Returns: TargetsBuilder

Preset: Danger (red).

public TargetsBuilder Dark() #
Returns: TargetsBuilder

Preset: Dark.

public TargetsBuilder HighlightParent(Boolean value = true) #
Returns: TargetsBuilder

Also highlight the parent wrapper in responsive child rows.

Parameters

value System.Boolean = true optionalposition: 0
public TargetsBuilder Info() #
Returns: TargetsBuilder

Preset: Info (cyan).

public TargetsBuilder Light() #
Returns: TargetsBuilder

Preset: Light.

public TargetsBuilder Opacity(Double value) #
Returns: TargetsBuilder

Set cell opacity (0..1) via CSS.

Parameters

value System.Double requiredposition: 0
public TargetsBuilder Primary() #
Returns: TargetsBuilder

Preset: Primary (blue).

public TargetsBuilder Row() #
Returns: TargetsBuilder

Targets all visible columns (row-level highlighting).

RowBackground 2 overloads
public TargetsBuilder RowBackground(RGBColor color) #
Returns: TargetsBuilder

Quickly apply background to all columns (whole row look).

Parameters

color System.String requiredposition: 0
RowBackground(HtmlForgeX.RGBColor color) #

Row-wide background (typed).

Parameters

color HtmlForgeX.RGBColor required
RowText 2 overloads
public TargetsBuilder RowText(RGBColor color) #
Returns: TargetsBuilder

Quickly apply text color to all columns.

Parameters

color System.String requiredposition: 0
RowText(HtmlForgeX.RGBColor color) #

Row-wide text color (typed).

Parameters

color HtmlForgeX.RGBColor required
public TargetsBuilder Secondary() #
Returns: TargetsBuilder

Preset: Secondary (gray).

public TargetsBuilder Success() #
Returns: TargetsBuilder

Preset: Success (green).

Text 2 overloads
public TargetsBuilder Text(RGBColor color) #
Returns: TargetsBuilder

Set text color (string CSS/hex).

Parameters

color System.String requiredposition: 0
Text(HtmlForgeX.RGBColor color) #

Set text color (typed RGBColor).

Parameters

color HtmlForgeX.RGBColor required
public TargetsBuilder Warning() #
Returns: TargetsBuilder

Preset: Warning (amber).