Class HTMLTableElement

Class HTMLTableElement

Název místa: Aspose.Html Sbírka: Aspose.HTML.dll (25.4.0)

Metody vytváření* a odstraňování* na tabulce umožňují autorům vytvářet a měnit tabulky. [HTML 4.01] uvádí, že v tabulce existuje pouze jeden z prvků ‘CAPTION’, ‘THEAD’ a ‘TFOOT.

Viz také The Document object Model (DOM) Level 2 HTML Specification .

[ComVisible(true)]
[DOMObject]
[DOMName("HTMLTableElement")]
public class HTMLTableElement : HTMLElement, INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver, IParentNode, IElementTraversal, IChildNode, IElementCSSInlineStyle, IGlobalEventHandlers

Inheritance

object DOMObject EventTarget Node Element HTMLElement HTMLTableElement

Implements

INotifyPropertyChanged , IEventTarget , IDisposable , IXPathNSResolver , IParentNode , IElementTraversal , IChildNode , IElementCSSInlineStyle , IGlobalEventHandlers

Dědiční členové

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

Stanoví pozici tabulky ve vztahu k zbytkuDokument. viz definici align atributu v HTML 4.01.Příslušenství je deprecováno v HTML 4.01.

[DOMName("align")]
public string Align { get; set; }

Hodnota nemovitosti

string

BgColor

Barva pozadí buňky. viz definici atributu bgcolor v HTMLTento atribut je depreciován v HTML 4.01.

[DOMName("bgColor")]
public string BgColor { get; set; }

Hodnota nemovitosti

string

Border

šířka hranice kolem stolu. vidět hraniční atributDefinice v HTML 4.01.

[DOMName("border")]
public string Border { get; set; }

Hodnota nemovitosti

string

Caption

Vrátí tabulku ‘CAPTION’, nebo vynechá, pokud neexistuje.@version DOM Level 2

[DOMName("caption")]
public HTMLTableCaptionElement Caption { get; }

Hodnota nemovitosti

HTMLTableCaptionElement

CellPadding

určuje horizontální a vertikální prostor mezi obsahem buněk aZobrazit definici atributu cellpadding v HTML 4.01.

[DOMName("cellPadding")]
public string CellPadding { get; set; }

Hodnota nemovitosti

string

CellSpacing

Určuje horizontální a vertikální oddělení mezi buňkami.Definice atributu cellspacing v HTML 4.01.

[DOMName("cellSpacing")]
public string CellSpacing { get; set; }

Hodnota nemovitosti

string

Frame

Určuje, které vnější tabulky hraničí. zobrazit rámVyužijte definici HTML 4.01.

[DOMName("frame")]
public string Frame { get; set; }

Hodnota nemovitosti

string

Rows

Vraťte tabulku „TFOOT“ nebo „zero“, pokud neexistuje.

[DOMName("rows")]
public HTMLCollection Rows { get; }

Hodnota nemovitosti

HTMLCollection

Exceptions

DOMException

HIERARCHY_REQUEST_ERR: pokud prvek není ‘TFOOT’.@version DOM Level 2

Rules

Ukažte, které vnitřní tabulky hraničí. viz pravidlaVyužijte definici HTML 4.01.

[DOMName("rules")]
public string Rules { get; set; }

Hodnota nemovitosti

string

Summary

Popis účelu nebo struktury tabulky. viz souhrnVyužijte definici HTML 4.01.

[DOMName("summary")]
public string Summary { get; set; }

Hodnota nemovitosti

string

TBDíky

Vrátí sbírku tabulkových těles (včetně implicitních).

[DOMName("tBodies")]
public HTMLCollection TBodies { get; }

Hodnota nemovitosti

HTMLCollection

Tfoot

Vraťte „THEAD“ nebo „null“ v tabulce, pokud neexistuje.

[DOMNullable]
[DOMName("tFoot")]
public HTMLTableSectionElement TFoot { get; }

Hodnota nemovitosti

HTMLTableSectionElement

Exceptions

DOMException

HIERARCHY_REQUEST_ERR: pokud prvek není ‘THEAD’.@version DOM Level 2

Teď

Vraťte tabulku “CAPTION”, nebo prázdný, pokud neexistuje.

[DOMName("tHead")]
[DOMNullable]
public HTMLTableSectionElement THead { get; }

Hodnota nemovitosti

HTMLTableSectionElement

Exceptions

DOMException

HIERARCHY_REQUEST_ERR: pokud prvek není ‘CAPTION’.@version DOM Level 2

Width

Určuje požadovanou šířku tabulky. viz definici atributu šířkyZobrazit v HTML 4.01.

[DOMName("width")]
public string Width { get; set; }

Hodnota nemovitosti

string

Methods

CreateCaption()

Vytvořte nový tabulkový nápis objekt nebo vrátit stávajíc.

[DOMName("createCaption")]
public Element CreateCaption()

Returns

Element

Jedná se o prvek „kapce.

Vytvořit Foot()

Vytvořte stůl stopu řádku nebo vrátit stávajíc.

[DOMName("createTFoot")]
public Element CreateTFoot()

Returns

Element

Jedná se o stopový prvek („TFOOT’).

Vytvořte hlavu()

Vytvořte pořadí hlavy tabulky nebo vrátíte stávajíc.

[DOMName("createTHead")]
public Element CreateTHead()

Returns

Element

Nový prvek hlavy tabulky („THEAD’).

DeleteCaption()

Vymazat tabulku, pokud existuje.

[DOMName("deleteCaption")]
public void DeleteCaption()

DeleteRow(Int)

Odstranit tabulku řádku.

[DOMName("deleteRow")]
public void DeleteRow(int index)

Parameters

index int

index řádku, který má být odstraněn. tento index začínáod 0 a je relativní k logickému řádu (ne dokumentárnímu řádu)všechny řádky obsažené uvnitř tabulky. pokud index je -1Poslední řádek v tabulce je vymazán.

Exceptions

DOMException

INDEX_SIZE_ERR: Zvýšené, pokud je specifikovaný index vyšší nežje stejný jako počet řádků nebo pokud index je negativní čísloJiné než 1.@version DOM úroveň 2

Odstranění()

Odstranit nohu z stolu, pokud existuje.

[DOMName("deleteTFoot")]
public void DeleteTFoot()

Odstranit hlavu()

Odstranit hlavičku z tabulky, pokud existuje.

[DOMName("deleteTHead")]
public void DeleteTHead()

InsertRow(Int)

Vložte do tabulky nový prázdný řádek. Nový řádek je vložen bezprostředně před a ve stejném oddílu jako aktuální index řádek v tabulce. Pokud index je -1 nerovnoměrný s počtem řádků, nový řádek je připojen. Kromě toho,když je tabulka prázdná, řádek je vložen do ‘TBODY’který je vytvořen a vložen do tabulky.Tabelní řádek nemůže být vložen podle [HTML 4.01].

[DOMName("insertRow")]
public Node InsertRow(int index)

Parameters

index int

Číslo řádku, kde zadat nový řádek. tento indexzačíná od 0 a je relativní k logickému pořadí (ne dokument)pořadí) všech řádků obsažených uvnitř stolu.

Returns

Node

Nově vytvořený řádek.

Exceptions

DOMException

INDEX_SIZE_ERR: Zvýšené, pokud je specifikovaný index vyšší nežpočet řádků nebo pokud index je negativní číslo jiné než -1.@version DOM úroveň 2

 Čeština