Home Cooker Classes Others Rice CookerGX
Classes  >  element
element class

Description

Represents a DOM element.

Notes

It is a class that is statically included in the Cooker.

fitter

SignatureDescription
element()

Get a new instance of element class.

getter

SignatureDescription
AccessKey

Gets the access key for the element.

All

Gets a list of all the elements contained in the element.

CanHaveChildren

Gets a value indicating whether the element can have string.

CanHaveHTML

Gets a value that indicates whether is possible to include elements into the element.

Children

Gets a list of the immediate child elements contained in the element.

ClassName

Gets the value of the class attribute of the element.

ClientHeight

Gets the height of the element, in pixels.

ClientLeft

Gets the width of the left border of the element, in pixels.

ClientTop

Gets the width of the top border of the element, in pixels.

ClientWidth

Gets the width of the element, in pixels.

ContentEditable

Gets the string that indicates whether the user can edit the content of the element.

Dir

Gets the value that indicates a direction of reading order.

Disabled

Gets the value that indicates whether the user can interact with the element.

Fitted

Gets the value that indicates whether this instance was already initialized.

HaveChild

Gets the value that indicates whether the element have child elements.

HideFocus

Gets the value that indicates whether a focus rectangle will be drawn.

Id

Gets the value of the id attribute of the element.

InflateBlock

Gets the value that indicates whether an empty element is rendered as elements including text.

InnerHTML

Gets the HTML between the start and end tags of the element.

InnerText

Gets the text between the start and end tags of the element.

IsContentEditable

Gets the value that indicates whether the user can edit the content of the element.

IsDisabled

Gets the value that indicates whether the user can interact with the element.

IsMultiLine

Gets the value that indicates whether the content of the element includes more than one line.

IsTextEdit

Gets the value that indicates whether a TextRange object can be created using this element.

OffsetHeight

Gets the height of the element.

OffsetLeft

Gets the horizontal offset from the element of the offsetParent property.

OffsetTop

Gets the vertical offset from the element of the offsetParent property.

OffsetWidth

Gets the width of the element.

OuterHTML

Gets the entire HTML of the element.

OuterText

Gets the text of the element.

Parent

Gets the parent element in the element hierarchy.

ScrollHeight

Gets the height of the scroll view of the element.

ScrollLeft

Gets the scrolled distance of the scroll view in the horizontal direction.

ScrollTop

Gets the scrolled distance of the scroll view in the vertical direction.

ScrollWidth

Gets the width of the scroll view of the element.

SourceIndex

Gets the ordinal position of the element.

Style

Gets an instance of the style type.

TabIndex

Gets the index that defines the tab order for the element.

TagName

Gets the tag name of the element.

Title

Gets the value of the title attribute.

TypeName

Gets the type name.

setter

SignatureDescription
AccessKey(string)

Sets the access key for the element.

ClassName(string)

Sets a value of the class attribute of the element.

ContentEditable(string)

Sets the string that indicates whether the user can edit the content of the element.

Dir(string)

Sets the value that indicates a direction of reading order.

Disabled(bool)

Sets the value that indicates whether the user can interact with the element.

HideFocus(bool)

Sets the value that indicates whether a focus rectangle will be drawn.

Id(string)

Sets a value of the id attribute of the element.

InflateBlock(bool)

Sets a value that indicates whether an empty element is rendered as elements including text.

InnerHTML(string)

Sets the HTML between the start and end tags of the element.

InnerText(string)

Sets a text between the start and end tags of the element.

OuterHTML(string)

Sets the HTML of the element.

OuterText(string)

Sets the text.

TabIndex(int)

Sets a index that defines the tab order for the element.

Title(string)

Sets a value of the title attribute.

method

SignatureDescription
AppendChild(element)

Appends an element as a last child to the element.

ApplyElement(element,string)

Makes an element either a child or parent of the invoker element.

Blur()

Remove the focus from the element.

ClearAttributes()

Removes all attributes and values from the element.

Click()

Simulates a click.

ComponentFromPoint(int,int)

Returns the component located at the specified coordinates.

Contains(element)

Gets the value that indicates whether the specified element is contained within the invoker element.

FireEvent(string)

Fires a specified event on the element.

Focus()

If possible, the invoker element gets the focus.

GetAdjacentText(string)

Returns a string that located at the specified position.

GetAttribute(string)

Gets a value of the specified attribute.

GetElementById(string)

Gets a offspring element that have the specified id attribute.

GetElementsByAttribute(string)

Gets a list of the offspring elements that have the specified attribute.

GetElementsByAttribute(string,string)

Gets a list of the offspring elements that have the specified attributes and values.

GetElementsByClassName(string)

Gets a list of the offspring elements that have the specified class attribute.

GetElementsByName(string)

Gets a list of the offspring elements that have the specified name attribute.

GetElementsByTagName(string)

Gets a list of the offspring elements that have the specified element name.

HasAttribute(string)

Gets a value that indicates whether the specified attribute is exist.

HasAttributes()

Gets a value that indicates whether one or more attributes exists.

InsertAdjacentElement(string,element)

Inserts an element at the specified position.

InsertAdjacentHTML(string,string)

Inserts a HTML at the specified position.

InsertAdjacentText(string,string)

Inserts a text at the specified position.

InsertBefore(element,element)

Inserts a element before the specified child.

InsertChild(element,int)

Inserts a element at the specified position by the index.

IsEqual(element)

Determines whether two elements are equal.

MergeAttributes(element)

Merges the attributes of the two elements, and writes it to the invoker element.

Remove()

Removes the element from the document hierarchy.

Remove(bool)

Removes the element from the document hierarchy.

RemoveAttribute(string)

Removes the specified attribute from the element.

RemoveChild(element)

Removes a child element from the invoker.

RemoveChild(int)

Removes a child element of the specified position from the invoker.

RemoveChildren(int)

Removes the children elements the specified position or later.

RemoveChildren(int,int)

Removes the children elements of the specified number from the specified position.

Replace(element)

Replaces the invoker element with another element.

ReplaceAdjacentText(string,string)

Replaces a text at the specified position.

ReplaceChild(element,element)

Replaces an existing child element with a new element.

ScrollIntoView()

Scrolls the element so that top of the element is visible at the top of the window.

ScrollIntoView(bool)

Scrolls the window so that the element is displayed at the specified position.

SetActive()

Activates the element without setting the focus.

SetAttribute(string,string)

Sets the value of the specified attribute.

Swap(element)

Swaps the location of two elements in the document hierarchy.

event

SignatureDescription
Click(any,string)

Sets the event handler for the Click event of the element.

DoubleClick(any,string)

Sets the event handler for the DoubleClick event of the element.

Focusing(any,string)

Sets the event handler for the Focusing event of the element.

GotFocus(any,string)

Sets the event handler for the GotFocus event of the element.

KeyDown(any,string)

Sets the event handler for the KeyDown event of the element.

KeyPress(any,string)

Sets the event handler for the KeyPress event of the element.

KeyUp(any,string)

Sets the event handler for the KeyUp event of the element.

LosingFocus(any,string)

Sets the event handler for the LosingFocus event of the element.

LostFocus(any,string)

Sets the event handler for the LostFocus event of the element.

MouseDown(any,string)

Sets the event handler for the MouseDown event of the element.

MouseEnter(any,string)

Sets the event handler for the MouseEnter event of the element.

MouseLeave(any,string)

Sets the event handler for the MouseLeave event of the element.

MouseMove(any,string)

Sets the event handler for the MouseMove event of the element.

MouseOver(any,string)

Sets the event handler for the MouseOver event of the element.

MouseUp(any,string)

Sets the event handler for the MouseUp event of the element.

Copyright © Rice All rights reserved.