cohtml.Net.IInputProxy

Represents an INPUT or TEXTAREA element in the View.

Inherits from cohtml.Net.INodeProxy, SystemIDisposable

Public Functions

Name
virtual override voidDispose()
virtual stringGetText(uint startIndex)
Gets the text in an input field.
virtual boolSetText(string buffer, uint length, Range range)
Sets the text in the input field.
virtual SelectionGetSelection()
Gets the current text selection.
virtual boolSetSelection(Selection selection)
Sets the current text selection.

Additional inherited members

Public Functions inherited from cohtml.Net.INodeProxy

Name
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.

Protected Attributes inherited from cohtml.Net.INodeProxy

Name
boolswigCMemOwn

Public Functions Documentation

function Dispose

virtual override void Dispose()

Reimplements: cohtml.Net.INodeProxy.Dispose

function GetText

virtual string GetText(
    uint startIndex
)

Gets the text in an input field.

Parameters:

  • startIndex the starting index from which to return the text

function SetText

virtual bool SetText(
    string buffer,
    uint length,
    Range range
)

Sets the text in the input field.

Parameters:

  • buffer the char buffer from which to set the text
  • length the length of the text
  • range the range of the text to replace

Return: whether the text was succesfully set

function GetSelection

virtual Selection GetSelection()

Gets the current text selection.

function SetSelection

virtual bool SetSelection(
    Selection selection
)

Sets the current text selection.

Parameters:

  • selection the new text selection to set

Return: whether setting the selection was successful