Class HTMLTableRowElement
Namespace: Aspose.Html
Assembly: Aspose.HTML.dll (25.2.0)
A row in a table. See the TR element definition in HTML 4.01.
See also the Document object Model (DOM) Level 2 HTML Specification.
[DOMObject]
[ComVisible(true)]
[DOMName("HTMLTableRowElement")]
public class HTMLTableRowElement : HTMLElement, INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver, IParentNode, IElementTraversal, IChildNode, IElementCSSInlineStyle, IGlobalEventHandlers
Inheritance
object ← DOMObject ← EventTarget ← Node ← Element ← HTMLElement ← HTMLTableRowElement
Implements
INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver, IParentNode, IElementTraversal, IChildNode, IElementCSSInlineStyle, IGlobalEventHandlers
Inherited Members
HTMLElement.Id, HTMLElement.Title, HTMLElement.Lang, HTMLElement.Dir, HTMLElement.ClassName, HTMLElement.Style, HTMLElement.OnAbort, HTMLElement.OnBlur, HTMLElement.OnCancel, HTMLElement.OnCanplay, HTMLElement.OnCanPlayThrough, HTMLElement.OnChange, HTMLElement.OnClick, HTMLElement.OnCueChange, HTMLElement.OnDblClick, HTMLElement.OnDurationChange, HTMLElement.OnEmptied, HTMLElement.OnEnded, HTMLElement.OnError, HTMLElement.OnFocus, HTMLElement.OnInput, HTMLElement.OnInvalid, HTMLElement.OnKeyDown, HTMLElement.OnKeyPress, HTMLElement.OnKeyUp, HTMLElement.OnLoad, HTMLElement.OnLoadedData, HTMLElement.OnLoadedMetadata, HTMLElement.OnLoadStart, HTMLElement.OnMouseDown, HTMLElement.OnMouseEnter, HTMLElement.OnMouseLeave, HTMLElement.OnMouseMove, HTMLElement.OnMouseOut, HTMLElement.OnMouseOver, HTMLElement.OnMouseUp, HTMLElement.OnMouseWheel, HTMLElement.OnPause, HTMLElement.OnPlay, HTMLElement.OnPlaying, HTMLElement.OnProgress, HTMLElement.OnRateChange, HTMLElement.OnReset, HTMLElement.OnResize, HTMLElement.OnScroll, HTMLElement.OnSeeked, HTMLElement.OnSeeking, HTMLElement.OnSelect, HTMLElement.OnShow, HTMLElement.OnStalled, HTMLElement.OnSubmit, HTMLElement.OnSuspend, HTMLElement.OnTimeUpdate, HTMLElement.OnToggle, HTMLElement.OnVolumeChange, HTMLElement.OnWaiting, Element.GetAttributeNames(), Element.HasAttributes(), Element.GetAttribute(string), Element.GetAttributeNS(string, string), Element.SetAttribute(string, string), Element.SetAttributeNS(string, string, string), Element.RemoveAttribute(string), Element.RemoveAttributeNS(string, string), Element.HasAttribute(string), Element.HasAttributeNS(string, string), Element.ToggleAttribute(string), Element.ToggleAttribute(string, bool), Element.GetAttributeNode(string), Element.SetAttributeNode(Attr), Element.RemoveAttributeNode(Attr), Element.GetAttributeNodeNS(string, string), Element.SetAttributeNodeNS(Attr), Element.GetElementsByTagName(string), Element.GetElementsByTagNameNS(string, string), Element.Remove(), Element.QuerySelectorAll(string), Element.QuerySelector(string), Element.AttachShadow(ShadowRootMode), Element.GetElementsByClassName(string), Element.Dispose(bool), Element.ClassList, Element.LocalName, Element.NamespaceURI, Element.Prefix, Element.NodeName, Element.NodeType, Element.TagName, Element.Id, Element.ClassName, Element.TextContent, Element.Attributes, Element.FirstElementChild, Element.LastElementChild, Element.PreviousElementSibling, Element.NextElementSibling, Element.ChildElementCount, Element.Children, Element.InnerHTML, Element.OuterHTML, Element.ShadowRoot, Node.ELEMENT_NODE, Node.ATTRIBUTE_NODE, Node.TEXT_NODE, Node.CDATA_SECTION_NODE, Node.ENTITY_REFERENCE_NODE, Node.ENTITY_NODE, Node.PROCESSING_INSTRUCTION_NODE, Node.COMMENT_NODE, Node.DOCUMENT_NODE, Node.DOCUMENT_TYPE_NODE, Node.DOCUMENT_FRAGMENT_NODE, Node.NOTATION_NODE, Node.HasChildNodes(), Node.Normalize(), Node.CloneNode(), Node.CloneNode(bool), Node.IsEqualNode(Node), Node.IsSameNode(Node), Node.LookupPrefix(string), Node.LookupNamespaceURI(string), Node.IsDefaultNamespace(string), Node.InsertBefore(Node, Node), Node.ReplaceChild(Node, Node), Node.RemoveChild(Node), Node.AppendChild(Node), Node.Dispose(bool), Node.ToString(), Node.NodeType, Node.LocalName, Node.NamespaceURI, Node.Prefix, Node.NodeName, Node.BaseURI, Node.OwnerDocument, Node.ParentNode, Node.ParentElement, Node.ChildNodes, Node.FirstChild, Node.LastChild, Node.PreviousSibling, Node.NextSibling, Node.NodeValue, Node.TextContent, EventTarget.AddEventListener(string, DOMEventHandler, bool), EventTarget.AddEventListener(string, IEventListener), EventTarget.AddEventListener(string, IEventListener, bool), EventTarget.RemoveEventListener(string, DOMEventHandler, bool), EventTarget.RemoveEventListener(string, IEventListener), EventTarget.RemoveEventListener(string, IEventListener, bool), EventTarget.DispatchEvent(Event), EventTarget.Dispose(), EventTarget.Dispose(bool), DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Align
Horizontal alignment of data within cells of this row. See the align attribute definition in HTML 4.01.
[DOMName("align")]
public string Align { get; set; }
Property Value
BgColor
Background color for rows. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
[DOMName("bgColor")]
public string BgColor { get; set; }
Property Value
Cells
The collection of cells in this row. @version DOM Level 2
[DOMName("cells")]
public HTMLCollection Cells { get; }
Property Value
Ch
Alignment character for cells in a column. See the char attribute definition in HTML 4.01.
[DOMName("ch")]
public string Ch { get; set; }
Property Value
ChOff
Offset of alignment character. See the charoff attribute definition in HTML 4.01.
[DOMName("chOff")]
public string ChOff { get; set; }
Property Value
RowIndex
This is in logical order and not in document order. The
rowIndex
does take into account sections (
THEAD
, TFOOT
, or TBODY
) within
the table, placing THEAD
rows first in the index,
followed by TBODY
rows, followed by TFOOT
rows.
@version DOM Level 2
[DOMName("rowIndex")]
public int RowIndex { get; }
Property Value
SectionRowIndex
The index of this row, relative to the current section (
THEAD
, TFOOT
, or TBODY
),
starting from 0.
@version DOM Level 2
[DOMName("sectionRowIndex")]
public int SectionRowIndex { get; }
Property Value
VAlign
Vertical alignment of data within cells of this row. See the valign attribute definition in HTML 4.01.
[DOMName("vAlign")]
public string VAlign { get; set; }
Property Value
Methods
DeleteCell(int)
Delete a cell from the current row.
[DOMName("deleteCell")]
public void DeleteCell(int index)
Parameters
index
int
The index of the cell to delete, starting from 0. If the index is -1 the last cell in the row is deleted.
Exceptions
INDEX_SIZE_ERR: Raised if the specified index
is greater
than or equal to the number of cells or if the index is a negative
number other than -1.
@version DOM Level 2
InsertCell(int)
Insert an empty TD
cell into this row. If
index
is -1 or equal to the number of cells, the new
cell is appended.
[DOMName("insertCell")]
public HTMLElement InsertCell(int index)
Parameters
index
int
The place to insert the cell, starting from 0.
Returns
The newly created cell.
Exceptions
INDEX_SIZE_ERR: Raised if the specified index
is greater
than the number of cells or if the index is a negative number other
than -1.
@version DOM Level 2