cohtml.Net.IInputProxy
Represents an INPUT or TEXTAREA element in the View.
Inherits from cohtml.Net.INodeProxy, SystemIDisposable
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual override void | Dispose() |
| virtual string | GetText(uint startIndex) Gets the text in an input field. |
| virtual bool | SetText(string buffer, uint length, Range range) Sets the text in the input field. |
| virtual Selection | GetSelection() Gets the current text selection. |
| virtual bool | SetSelection(Selection selection) Sets the current text selection. |
Additional inherited members
Section titled “Additional inherited members”Public Functions inherited from cohtml.Net.INodeProxy
| Name | |
|---|---|
| virtual string | GetAttribute(string name) Get attribute’s value whit given name. |
| virtual string | GetAttribute(uint id) Get attribute’s value whit given Id. |
| virtual string | GetValueOfElement() Gives 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. |
| uint | GetAttribute(string name, global.System.IntPtr buffer, uint bufferLength) Gives the attribute value. |
| uint | GetAttribute(uint id, global.System.IntPtr buffer, uint bufferLength) Gives the attribute value. |
| uint | GetValueOfElement(global.System.IntPtr buffer, uint bufferLength) Gives the Value of the Element. |
Protected Attributes inherited from cohtml.Net.INodeProxy
| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual override void Dispose()Reimplements: cohtml.Net.INodeProxy.Dispose
function GetText
Section titled “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
Section titled “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 successfully set
Note: Waits for style solving generated from previous Advance. Avoid calling it too early.
function GetSelection
Section titled “function GetSelection”virtual Selection GetSelection()Gets the current text selection.
function SetSelection
Section titled “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
Note: Waits for style solving generated from previous Advance. Avoid calling it too early.
© 2026 Coherent Labs. All rights reserved.