DotNetBrowser  1.14
Properties | List of all members
DotNetBrowser.DOM.DOMSelectElement Interface Reference

Represents DOM HTML Select element. More...

Inherits DotNetBrowser.DOM.DOMFormControlElement.

Properties

List< DOMOptionElementOptions [get]
 Gets the collection of OPTION elements contained by this select element. More...
 
bool Multiple [get, set]
 Gets or sets select element type. true if type is 'select-multiple', false if 'select-one'.. More...
 
- Properties inherited from DotNetBrowser.DOM.DOMFormControlElement
bool Enabled [get]
 Indicates whether form control is enabled or disabled. More...
 
string Value [get, set]
 Gets or sets value for input element, textarea element and select element. For select element, it returns the value of the selected option if present. If no selected option, an empty string is returned. If element doesn't fall into input element, textarea element and select element categories, an empty string is returned. More...
 
DOMFormElement Form [get]
 Returns the FORM element containing this control. Returns null if this control is not within the context of a form. More...
 
- Properties inherited from DotNetBrowser.DOM.DOMElement
Dictionary< string, string > Attributes [get]
 Returns a dictionary that contains attributes of the current element. More...
 
string InnerHTML [get]
 Returns a string that represents inner HTML of the current element. More...
 
string InnerText [get]
 Returns a string that represents inner text of the current element. More...
 
int OffsetLeft [get]
 Gets the horizontal offset position of the current element More...
 
int OffsetTop [get]
 Gets the vertical offset position of the current element More...
 
int OffsetWidth [get]
 Gets the width of the current element, including padding, border and scrollbar More...
 
int OffsetHeight [get]
 Gets the height of the current element, including padding, border and scrollbar More...
 
int ClientLeft [get]
 Gets the width of the left border of the current element More...
 
int ClientTop [get]
 Gets the width of the top border of the current element More...
 
int ClientWidth [get]
 Gets the width of the current element, including padding More...
 
int ClientHeight [get]
 Gets the height of the current element, including padding More...
 
double ScrollLeft [get, set]
 Gets or sets the number of pixels an element's content is scrolled horizontally More...
 
double ScrollTop [get, set]
 Gets or sets the number of pixels an element's content is scrolled vertically More...
 
int ScrollWidth [get]
 Gets the entire width of the current element, including padding More...
 
int ScrollHeight [get]
 Gets the entire height of the current element, including padding More...
 
Rectangle BoundingClientRect [get]
 Returns bounds of the element and its position relative to the top-left of the viewport of the current document. More...
 
- Properties inherited from DotNetBrowser.DOM.DOMNode
string NodeName [get]
 Gets the name of this node, depending on its DOMNodeType. More...
 
string NodeValue [get, set]
 Gets or sets the value of this node, depending on its DOMNodeType. More...
 
DOMNodeType NodeType [get]
 Gets the type of this node. More...
 
DOMNode Parent [get]
 Gets parent node or null if there's no parent. More...
 
List< DOMNodeChildren [get]
 Gets a list of child node of this node. More...
 
string XPath [get]
 Gets the xpath of this node More...
 
string TextContent [get, set]
 Gets or sets text content of the node and its descendants. More...
 
DOMNode NextSibling [get]
 Gets the node immediately following this one in its parent's children list, or null if this node is the last node in the list. More...
 
DOMNode PreviousSibling [get]
 Gets the node immediately preceding this one in its parent's children list, or null if this node is the first node in that list. More...
 

Additional Inherited Members

- Public Member Functions inherited from DotNetBrowser.DOM.DOMElement
string GetAttribute (string name)
 Returns an attribute value by name . More...
 
bool SetAttribute (string name, string value)
 Adds a new attribute. If an attribute with that name is already present in the element, its value is changed to be that of the value parameter. More...
 
void RemoveAttribute (string name)
 Removes an attribute specified by name . More...
 
bool HasAttribute (string name)
 Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise. More...
 
bool SetInnerHTML (string html)
 Replaces inner HTML of the current element with specified html. More...
 
bool SetInnerText (string text)
 Replaces inner text of the current element with specified html. More...
 
void Focus ()
 Give focus to the current element More...
 
void Blur ()
 Remove focus from the current element More...
 
- Public Member Functions inherited from DotNetBrowser.DOM.DOMNode
List< DOMNodeGetElementsByTagName (string tagName)
 Returns a list of DOM nodes with specific tagName . More...
 
List< DOMNodeGetElementsByName (string name)
 Returns a list of DOM nodes whose name attribute is given by name . More...
 
List< DOMNodeGetElementsByClassName (string className)
 Returns a list of DOM nodes whose class attribute is given by className . More...
 
void Click ()
 Simulates click on the current Node. More...
 
DOMNode QuerySelector (string selectors)
 Returns the first DOM node from children of the current node, that match any selector within selectors string. More...
 
List< DOMNodeQuerySelectorAll (string selectors)
 Returns a list of DOM nodes from children of the current node, that match any selector within selectors string. More...
 
bool InsertChild (DOMNode node, DOMNode beforeNode)
 Inserts a new node before an existing beforeNode. The new node could be an existing node in the document, or you can create and insert a new node. If the node is existing node, it will be moved to new location in the document. More...
 
bool ReplaceChild (DOMNode newNode, DOMNode oldNode)
 Replaces existing child node with a new node. The new node could be an existing node in the document, or you can create a new node. If the newNode is existing node, it will be moved to new location in the document. The old node could be used for inserting/appending it into the document later. More...
 
bool RemoveChild (DOMNode childNode)
 Removes a child node and notifies whether child node was removed from the current node successfully or not. More...
 
bool AppendChild (DOMNode childNode)
 Appends a node as the last child of the current node. The new node could be an existing node in the document, or you can create a new node. If the childNode is existing node, it will be moved to new location in the document. More...
 
- Public Member Functions inherited from DotNetBrowser.DOM.Events.DOMEventTarget
void AddEventListener (DOMEventType eventType, DOMEventHandler handler, bool useCapture)
 This method allows the registration of event listeners on the event target. If an DOMEventHandler is added to an DOMEventTarget while it is processing an event, it will not be triggered by the current actions but may be triggered during a later stage of event flow, such as the bubbling phase.
If multiple identical DOMEventHandlers are registered on the same DOMEventTarget with the same parameters the duplicate instances are discarded. They do not cause the DOMEventHandler to be called twice and since they are discarded they do not need to be removed with the RemoveEventListener method. More...
 
void AddEventListener (DOMEvent domEvent, DOMEventHandler handler, bool useCapture)
 This method allows the registration of event listeners on the event target. If an DOMEventHandler is added to an DOMEventTarget while it is processing an event, it will not be triggered by the current actions but may be triggered during a later stage of event flow, such as the bubbling phase.
If multiple identical DOMEventHandlers are registered on the same DOMEventTarget with the same parameters the duplicate instances are discarded. They do not cause the DOMEventHandler to be called twice and since they are discarded they do not need to be removed with the RemoveEventListener method. More...
 
void RemoveEventListener (DOMEventType eventType, DOMEventHandler handler, bool useCapture)
 This method allows the removal of event listeners from the event target. If an DOMEventHandler is removed from an DOMEventTarget while it is processing an event, it will not be triggered by the current actions. DOMEventHandlers can never be invoked after being removed.
Calling RemoveEventListener with arguments which do not identify any currently registered DOMEventHandler on the DOMEventTarget has no effect. More...
 
void RemoveEventListener (DOMEvent domEvent, DOMEventHandler handler, bool useCapture)
 This method allows the removal of event listeners from the event target. If an DOMEventHandler is removed from an DOMEventTarget while it is processing an event, it will not be triggered by the current actions. DOMEventHandlers can never be invoked after being removed.
Calling RemoveEventListener with arguments which do not identify any currently registered DOMEventHandler on the DOMEventTarget has no effect. More...
 
List< DOMEventHandlerGetEventListeners (DOMEventType eventType)
 Returns a list of registered DOMEventHandler's for specific eventType. More...
 
List< DOMEventHandlerGetEventListeners (DOMEvent domEvent)
 Returns a list of registered DOMEventHandler's for specific custom event. More...
 
bool DispatchEvent (DOMEvent domEvent)
 Sends an event to the current element. More...
 
- Public Member Functions inherited from DotNetBrowser.DOM.SearchContext
DOMElement GetElementByTagName (string tagName)
 Finds first DOM element in the current document or element with the given tagName . Returns null if element wasn't found using given find method. More...
 
DOMElement GetElementByName (string name)
 Finds first DOM element in the current document or element with the given name . Returns null if element wasn't found using given find method. More...
 
DOMElement GetElementByClassName (string className)
 Finds first DOM element in the current document or element with the given className . Returns null if element wasn't found using given find method. More...
 
XPathResult Evaluate (string expression)
 Evaluates an XPath expression for the document element with XPathResultType.ANY_TYPE and returns the result. Equivalent of: More...
 
XPathResult Evaluate (string expression, XPathResultType type)
 Returns an XPathResult based on an XPath expression and other given parameters. More...
 

Detailed Description

Represents DOM HTML Select element.

Property Documentation

bool DotNetBrowser.DOM.DOMSelectElement.Multiple
getset

Gets or sets select element type. true if type is 'select-multiple', false if 'select-one'..

List<DOMOptionElement> DotNetBrowser.DOM.DOMSelectElement.Options
get

Gets the collection of OPTION elements contained by this select element.