Class TRElementImpl
Class that is responsible for <TR> Tag.
Inherited Members
Namespace: Syncfusion.Windows.Forms.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
[ElementTag("tr")]
public class TRElementImpl : BaseElement, IHTMLElement, ICloneable, IDisposable
Constructors
TRElementImpl(IHTMLElement)
Initializes a new instance of the TRElementImpl class
Declaration
public TRElementImpl(IHTMLElement parent)
Parameters
Type | Name | Description |
---|---|---|
IHTMLElement | parent | Parent element. |
Properties
CellsCount
Gets the real quantity of TD tags in children.
Declaration
public int CellsCount { 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
protected TABLEElementImpl Table { get; set; }
Property Value
Type |
---|
TABLEElementImpl |
VirtualCellsCount
Gets the quantity of cells including the Colspan settings.
Declaration
public int VirtualCellsCount { get; }
Property Value
Type |
---|
System.Int32 |
Methods
CalculateCellsCounts(XmlElement)
Calculates the number of cells in the row.
Declaration
protected void CalculateCellsCounts(XmlElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | element | XML element for the object. |
CalculateChildPositions(Point, Rectangle)
Overridden. Calculates the positions of the child 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 of the element. |
Returns
Type | Description |
---|---|
BlocksCollection | Array of blocks. |
Overrides
ChildrenChanged(Object, CollectionEventArgs)
Raised when the collection of children has changed. Here we have to update our data about row's dimensions.
Declaration
protected void ChildrenChanged(object sender, CollectionEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | Sender of the event. |
CollectionEventArgs | e | Event arguments. |
GetCells()
Returns an array of cells in the row. Returns the TD and TH elements.
Declaration
protected IHTMLElement[] GetCells()
Returns
Type | Description |
---|---|
IHTMLElement[] | Array of cells in the row. Returns TD and TH elements. |
InitializeElement()
Overridden. Initializes an element.
Declaration
protected override void InitializeElement()
Overrides
MoveFinalCurPos(ref Point)
Overridden. Moves the current position of the parent element down after this element.
Declaration
protected override void MoveFinalCurPos(ref Point currentPos)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | currentPos | Current position. |
Overrides
OnDispose()
Overloaded. Disposes element.
Declaration
protected override void OnDispose()
Overrides
ReparseInnerHTML(String)
Overridden. Reparses the inner HTLML data of the element.
Declaration
protected override void ReparseInnerHTML(string htmlToParse)
Parameters
Type | Name | Description |
---|---|---|
System.String | htmlToParse | HTML code for parsing. |