Skip to content
SiteEmail

cohtml.Net.INodeProxy

Represents a DOM element in the View - i.e. a DIV, the BODY etc.

Inherits from SystemIDisposable

Inherited by cohtml.Net.IInputProxy

Name
virtual voidDispose()
virtual stringGetAttribute(string name)
Get attribute’s value whit given name.
virtual stringGetAttribute(uint id)
Get attribute’s value whit given Id.
virtual stringGetValueOfElement()
Gives the value of the Element.
virtual stringGetId()
Returns the id of the element - this is a shortcut to get the ‘id’ attribute.
virtual uintGetClassesCount()
Returns the classes count of the element - this is a shortcut to get the ‘class’ attribute.
virtual stringGetClass(uint id)
Returns the value of the class with id number from the array.
virtual uintGetAttributesCount()
Returns the count of all attributes on a node.
virtual boolHasAttribute(string name)
Returns if an attribute with name is set on the element.
virtual HTMLTagGetTag()
Returns the HTML tag of the element.
virtual boolHasScriptEventListeners()
Returns if the element has event listeners in JavaScript.
virtual voidGetBoundingRect(out double x, out double y, out double width, out double height)
Returns position and size of the node in view coordinates.
uintGetAttribute(string name, global.System.IntPtr buffer, uint bufferLength)
Gives the attribute value.
uintGetAttribute(uint id, global.System.IntPtr buffer, uint bufferLength)
Gives the attribute value.
uintGetValueOfElement(global.System.IntPtr buffer, uint bufferLength)
Gives the Value of the Element.
Name
boolswigCMemOwn
virtual void Dispose()

Reimplemented by: cohtml.Net.IInputProxy.Dispose

virtual string GetAttribute(
string name
)

Get attribute’s value whit given name.

Parameters:

  • name The name of the attribute.

Return: The value of the attribute.

virtual string GetAttribute(
uint id
)

Get attribute’s value whit given Id.

Parameters:

  • id the numbered id of the attribute - can be used to iterate over all attributes.

Return: The value of the attribute.

virtual string GetValueOfElement()

Gives the value of the Element.

Return: The value of the element.

virtual string GetId()

Returns the id of the element - this is a shortcut to get the ‘id’ attribute.

virtual uint GetClassesCount()

Returns the classes count of the element - this is a shortcut to get the ‘class’ attribute.

virtual string GetClass(
uint id
)

Returns the value of the class with id number from the array.

virtual uint GetAttributesCount()

Returns the count of all attributes on a node.

virtual bool HasAttribute(
string name
)

Returns if an attribute with name is set on the element.

virtual HTMLTag GetTag()

Returns the HTML tag of the element.

virtual bool HasScriptEventListeners()

Returns if the element has event listeners in JavaScript.

virtual void GetBoundingRect(
out double x,
out double y,
out double width,
out double height
)

Returns position and size of the node in view coordinates.

Parameters:

  • x position of the node in pixels in the space of the view
  • y position of the node in pixels in the space of the view
  • width of the node in pixels in the space of the view
  • height of the node in pixels in the space of the view
uint GetAttribute(
string name,
global.System.IntPtr buffer,
uint bufferLength
)

Gives the attribute value.

Parameters:

  • buffer the char buffer where to copy the value - can be nullptr, to just get the size of the value
  • bufferLength the size of the buffer in bytes. If the buffer is too small to accommodate the value, only bufferLength bytes will be copied

Return: the size of the whole value string in bytes

uint GetAttribute(
uint id,
global.System.IntPtr buffer,
uint bufferLength
)

Gives the attribute value.

Parameters:

  • id the numbered id of the attribute - can be used to iterate over all attributes
  • buffer the char buffer where to copy the value - can be nullptr, to just get the size of the value
  • bufferLength the size of the buffer in bytes. If the buffer is too small to accommodate the value, only bufferLength bytes will be copied

Return: the size of the whole value string in bytes

uint GetValueOfElement(
global.System.IntPtr buffer,
uint bufferLength
)

Gives the Value of the Element.

Parameters:

  • buffer the char buffer where to copy the value - can be nullptr, to just get the size of the value
  • bufferLength the size of the buffer in bytes. If the buffer is too small to accommodate the value, only bufferLength bytes will be copied

Return: the size of the whole value string in bytes

bool swigCMemOwn;