Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  InnerText(string)
element class : InnerText(string) setter

Description

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

Syntax

elementInstance.InnerText = anyText

Arguments

ClassNameDescription
stringanyTextA text between the start and end tags of the element.

Return value

None

Sample code

//anyElement is an any instance of element type.

anyElement.InnerText = "This is a span element.";//This text will be displayed as string because automatically be HTML escaped.

Notes

It's a wrapper of the MSHTML.IHTMLElement.innerText.

Text will automatically be HTML escaped.

Links for reference

Copyright © Rice All rights reserved.