Class HTMLTableColElement
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The HTMLTableColElement interface provides properties for manipulating single or grouped table column elements.
[Value("HTMLTableColElement")]
public class HTMLTableColElement : HTMLElement
- Inheritance
-
HTMLTableColElement
- Inherited Members
Remarks
Constructors
HTMLTableColElement()
public HTMLTableColElement()
Properties
Align
IMPORTANT
Deprecatedalign property of the HTMLTableColElement interface is a string indicating how to horizontally align text in a table {{htmlelement("col")}} column element.
[Value("align")]
public string Align { get; set; }
Property Value
- string
The possible values are:
Remarks
NOTE
This property is deprecated, and CSS should be used to align text horizontally in a column. Use the CSS text-align property, which takes precedence, to horizontally align text in a column instead.
As td are not children of col, you can't set it directly on a col element, you need to select the cells of the column using a
td:nth-last-child(n)or similar (nis the column number, counting from the end).
-text-align
-:nth-child()
-:nth-last-child()
-Learn: Styling tables
Ch
IMPORTANT
Deprecatedch property of the HTMLTableColElement interface does nothing. It reflects the char attribute of the col element.
[Value("ch")]
public string Ch { get; set; }
Property Value
- string
A single character.
Remarks
NOTE
This property was designed to participate to the ability to align table cell content on a specific character (typically the decimal point), but was never implemented by browsers.
To achieve such alignment, watch for the support of a string value with the text-align CSS property.
ChOff
IMPORTANT
DeprecatedchOff property of the HTMLTableColElement interface does nothing. It reflects the charoff attribute of the col element.
[Value("chOff")]
public string ChOff { get; set; }
Property Value
- string
An integer.
Remarks
NOTE
This property was designed to participate in an ability to align table cell content on a specific character (typically the decimal point), but was never implemented by browsers.
To achieve such alignment, watch for the support of a string value with the text-align CSS property.
Span
The span property of the HTMLTableColElement interface represents the number of columns this {{htmlelement("col")}} or {{htmlelement("colgroup")}} must span; this lets the column occupy space across multiple columns of the table. It reflects the span attribute.
[Value("span")]
public ulong Span { get; set; }
Property Value
- ulong
A positive number representing the number of columns.
NOTE
When setting a new value, the value is clamped to the nearest strictly positive number (up to 1000).
Remarks
VAlign
IMPORTANT
DeprecatedvAlign property of the HTMLTableColElement interface is a string indicating how to vertically align text in a table {{htmlelement("col")}} column element.
[Value("vAlign")]
public string VAlign { get; set; }
Property Value
- string
The possible values are:
"top","middle","bottom", or"baseline"
Remarks
NOTE
This property is deprecated, and CSS should be used to align text vertically in a column. Use the CSS vertical-align property, which takes precedence, to vertically align text in each column cell instead.
As td are not children of col, you can't set it directly on a col element, you need to select the cells of the column using a
td:nth-child(n)or similar (nis the column number).
Width
[Value("width")]
public string Width { get; set; }