Class TDElementImpl
Class that is responsible for <TD> Tag.
Inherited Members
Namespace: Syncfusion.Windows.Forms.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
[ElementTag("td")]
public class TDElementImpl : BaseElement, IHTMLElement, ICloneable, IDisposable
Constructors
TDElementImpl(IHTMLElement)
Initializes a new instance of the TDElementImpl class
Declaration
public TDElementImpl(IHTMLElement parent)
Parameters
Type | Name | Description |
---|---|---|
IHTMLElement | parent | Parent element. |
TDElementImpl(IHTMLElement, String)
Initializes a new instance of the TDElementImpl class
Declaration
protected TDElementImpl(IHTMLElement parent, string tagName)
Parameters
Type | Name | Description |
---|---|---|
IHTMLElement | parent | Parent element. |
System.String | tagName | Name of the tag. |
Properties
Colspan
Gets number of colspan in the element.
Declaration
public int Colspan { get; }
Property Value
Type |
---|
System.Int32 |
ColumnIndex
Gets the order of the cell in the row.
Declaration
public int ColumnIndex { get; }
Property Value
Type |
---|
System.Int32 |
OwnFormat
Overridden. Gets or sets the format which is special for tag A (Hyperlink).
Declaration
protected override HTMLFormat OwnFormat { get; }
Property Value
Type |
---|
HTMLFormat |
Overrides
RowIndex
Gets the order of the cell in the column.
Declaration
public int RowIndex { get; }
Property Value
Type |
---|
System.Int32 |
Rowspan
Gets the number of rowspan in the element.
Declaration
public int Rowspan { get; }
Property Value
Type |
---|
System.Int32 |
SupportedEvents
Overridden. Returns an array of supported events.
Declaration
public override string[] SupportedEvents { get; }
Property Value
Type |
---|
System.String[] |
Overrides
Table
Gets or sets the parent table for this cell element.
Declaration
public TABLEElementImpl Table { get; set; }
Property Value
Type |
---|
TABLEElementImpl |
Methods
CalculateChildPositions(Point, Rectangle)
Overridden. Calculates the position of the element.
Declaration
protected override BlocksCollection CalculateChildPositions(Point curPosition, Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | curPosition | Current position. |
System.Drawing.Rectangle | bounds | Bounds for the element. |
Returns
Type | Description |
---|---|
BlocksCollection | Array of the blocks. |
Overrides
GetParentRow()
Returns parent row for this cell element.
Declaration
protected IHTMLElement GetParentRow()
Returns
Type | Description |
---|---|
IHTMLElement | Parent row for this cell element. |
GetParentTable()
Returns parent table for this cell element.
Declaration
protected IHTMLElement GetParentTable()
Returns
Type | Description |
---|---|
IHTMLElement | Parent table for this cell element. |
GetStyleFromParents(HTMLFormat)
Inherits from table, parent element's border and background color.
Declaration
protected void GetStyleFromParents(HTMLFormat format)
Parameters
Type | Name | Description |
---|---|---|
HTMLFormat | format | HTMLFormat instance |
GetUpperCell()
Returns cell which is above current if it exists; Null otherwise.
Declaration
protected BaseElement GetUpperCell()
Returns
Type | Description |
---|---|
BaseElement | Cell which is above current if it exists; Null otherwise. |
GetXFromLeftCells()
Returns the X coordinate corresponding to cells which are at the left of the current cell. If there are no cells at the left, it returns -1.
Declaration
protected int GetXFromLeftCells()
Returns
Type | Description |
---|---|
System.Int32 | X coordinate corresponding to cells which are at the left from current cell. If there are no cells at the left; -1 otherwise. |
OnDispose()
Overridden. Disposes all resources.
Declaration
protected override void OnDispose()
Overrides
ProhibitSpaceAfter()
Overridden. Sets the value indicating if trailing whitespace must be allowed after element.
Declaration
protected override void ProhibitSpaceAfter()
Overrides
SetDimensionAttributes()
Searches for colspan and rowspan attributes and assigns them to variables.
Declaration
protected void SetDimensionAttributes()
SetOwnFormat()
Sets own format (inherits background color and border from table and tr parent elements).
Declaration
protected virtual void SetOwnFormat()