Class Comment
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The Comment interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.
[Value("Comment")]
public class Comment : CharacterData, NonDocumentTypeChildNode, ChildNode
- Inheritance
-
Comment
- Implements
- Inherited Members
Remarks
Comments are represented in HTML and XML as content between <!-- and -->. In XML, like inside SVG or MathML markup, the character sequence -- cannot be used within a comment.
Constructors
Comment()
public Comment()
Comment(string)
The Comment() constructor returns a newly created
Comment object with the optional string given in
parameter as its textual content.
public Comment(string data = null)
Parameters
datastring
Remarks
-The DOM interfaces index
-CreateComment(string) is an outdated alternative to this constructor.