Class HTMLTableElement

Class HTMLTableElement

Il nome: Aspose.Html Assemblaggio: Aspose.HTML.dll (25.4.0)

I metodi di creazione* e cancellazione* sulla tabella consentono agli autori di costruire e modificare le tabelle. [HTML 4.01] specifica che solo uno degli elementi di ‘CAPTION’, ‘THEAD’ e ‘TFOOT’ esistono in una tabella. Pertanto, se uno esiste, e il metodo di creazioneTHead() orcreateTFoot() viene chiamato, il metodo restituisce l’elemento THead oTFoot esistente.

Vedi anche il 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

I membri ereditari

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

specificare la posizione della tabella rispetto al resto della tabelladocumento. vedi la definizione di attributi align in HTML 4.01.L’attribuzione è deprezzata in HTML 4.01.

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

Valore di proprietà

string

BgColor

Colore di sfondo cellulare. vedi la definizione dell’attributo bgcolor in HTMLQuesto attributo è deprezzato in HTML 4.01.

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

Valore di proprietà

string

Border

La larghezza della frontiera intorno al tavolo. vedi l’attributo di frontieraLa definizione in HTML 4.01.

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

Valore di proprietà

string

Caption

Ritorna il ‘CAPTION’ della tabella o vuota se non esiste.@versione DOM Livello 2

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

Valore di proprietà

HTMLTableCaptionElement

CellPadding

specifica lo spazio orizzontale e verticale tra il contenuto cellulare evedi la definizione dell’attributo cellpadding in HTML 4.01.

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

Valore di proprietà

string

CellSpacing

Determinare la separazione orizzontale e verticale tra le cellule.La definizione degli attributi di cellspacing in HTML 4.01.

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

Valore di proprietà

string

Frame

Determinare quali confini esterni della tabella per rendere. vedere il quadroLa definizione di attributi in HTML 4.01.

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

Valore di proprietà

string

Rows

Ritorna il ‘TFOOT’ o ‘zero’ della tabella se non esiste.

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

Valore di proprietà

HTMLCollection

Exceptions

DOMException

HIERARCHY_REQUEST_ERR: se l’elemento non è un ‘TFOOT’.@versione DOM Livello 2

Rules

Determinare quali confini di tabella interna da rendere. vedi le regoleLa definizione di attributi in HTML 4.01.

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

Valore di proprietà

string

Summary

Descrizione dell’obiettivo o della struttura di una tabella. vedi la sintesiLa definizione di attributi in HTML 4.01.

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

Valore di proprietà

string

Tobias

Ritorna una raccolta dei corpi della tabella (inclusi quelli impliciti).

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

Valore di proprietà

HTMLCollection

di Tfoot

Ritorna il ‘THEAD’ o ‘zero’ della tabella se non esiste.

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

Valore di proprietà

HTMLTableSectionElement

Exceptions

DOMException

HIERARCHY_REQUEST_ERR: se l’elemento non è un ‘THEAD’.@versione DOM Livello 2

di Tead

Ritorna il “CAPTION” della tabella, o vuoto se non esiste.

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

Valore di proprietà

HTMLTableSectionElement

Exceptions

DOMException

HIERARCHY_REQUEST_ERR: se l’elemento non è un ‘CAPTION’.@versione DOM Livello 2

Width

Specifica la larghezza di tabella desiderata. vedi la definizione dell’attributo di larghezzaIl testo in HTML 4.1.

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

Valore di proprietà

string

Methods

CreateCaption()

Crea un nuovo oggetto o restituisci un oggetto esistente.

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

Returns

Element

Un elemento di “caption”.

CreazioneFoot()

Crea una linea di piede da tavolo o restituisci una esistente.

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

Returns

Element

Un elemento di piede (“TFOOT”).

Creazione di capo()

Crea una riga di titolo di tabella o restituisci una riga esistente.

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

Returns

Element

Un nuovo elemento del titolo della tabella (“THEAD”).

DeleteCaption()

Rimuovere il segnale, se uno esiste.

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

DeleteRow(int)

Rimuovere una linea da tavolo.

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

Parameters

index int

L’indice della riga da cancellare.Questo indice iniziada 0 e è relativo all’ordine logico (non ordine documentale) ditutte le righe contenute all’interno della tabella. se l’indice è -1 ilL’ultima riga nella tabella è cancellata.

Exceptions

DOMException

INDEX_SIZE_ERR: aumentato se l’indice specificato è maggiore opari al numero di righe o se l’indice è un numero negativoAltro che -1.Versione DOM di livello 2

EliminazioneFoot()

Rimuovere il piede dalla tavola, se uno esiste.

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

Rimuovere la testa()

Rimuovere il capolavoro dalla tavola, se uno esiste.

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

InsertRow(int)

Inserisci una nuova riga vuota nella tabella. La nuova riga viene inserita immediatamente prima e nella stessa sezione della riga dell’indice corrente nella tabella. Se l’indice è -1 ineguale al numero di riga, la nuova riga viene aggiunta. Inoltre,quando la tabella è vuota la riga viene inserita in una ‘TBODY’ che viene creata e inserita nella tabella.La riga della tabella non può essere inserita secondo [HTML 4.01].

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

Parameters

index int

Il numero di riga dove inserire una nuova riga.comincia da 0 e è relativo all’ordine logico (non documentoOrdine) di tutte le righe contenute all’interno della tabella.

Returns

Node

La nuova linea creata.

Exceptions

DOMException

INDEX_SIZE_ERR: aumentato se l’indice specificato è superiore alnumero di righe o se l’indice è un numero negativo diverso da -1.Versione DOM di livello 2

 Italiano