Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Abstract class: RT.TagSoup.HtmlTag

Summary

Abstract base class for HTML tags.

Remarks

Useful reference: http://simon.html5.org/html-elements

Constructors

Constructor.
HtmlTag(params object[] contents)

Instance methods

Tag
_(params object[] contents)
  • Inherited from Tag
Sets the contents of the tag. Any objects are allowed.
Tag
_(params Func<object>[] contents)
  • Inherited from Tag
Sets the contents of the tag using lazy evaluation.
Tag
_(IEnumerable contents)
  • Inherited from Tag
Sets the contents of the tag. Any objects are allowed.
void
Add(object content)
  • Inherited from Tag
Adds stuff at the end of the contents of this tag (a string, a tag, a collection of strings or of tags).
Tag
Data(string key, object value)
  • Inherited from Tag
Specifies a data attribute for this tag.
IEnumerable<string>
ToEnumerable(bool allTags = false)
  • Inherited from Tag
  • Virtual
Outputs this tag and all its contents.
string
  • Inherited from Tag
  • Overrides: object.ToString()
Converts the entire tag tree into a single string.
string
ToString(bool allTags)
  • Inherited from Tag
void
WriteToFile(string filename, bool allTags = false)
  • Inherited from Tag
Creates a new file and outputs this tag and all its contents to it.

Static methods

Tag
HtmlDocument(object title, params object[] bodyContent)
  • Inherited from Tag
Creates a simple HTML document from the specified elements.
Tag
HtmlTable(string classOnAllTags, params object[][] rows)
  • Inherited from Tag
Special method to help construct an HTML <TABLE> element without needing to manually instantiate all intermediate row and cell tags.
IEnumerable<string>
ToEnumerable(object tagTree, bool allTags = false)
  • Inherited from Tag
Converts a tag tree into a string that is generated bit by bit.
RawTag
ToRaw(object tagTree)
  • Inherited from Tag
Converts a tag tree into a raw tag which would render exactly the same as the tag tree.
RawTag
ToRaw(params object[] tagTree)
  • Inherited from Tag
string
ToString(object tagTree, bool allTags = false)
  • Inherited from Tag
Converts a tag tree into a single string.

Instance properties

bool
  • Inherited from Tag
  • Virtual
Whether the end tag should be printed.
bool
  • Inherited from Tag
  • Virtual
Whether the start tag should be printed. If the tag has attributes, it will be printed regardless.
string
  • Inherited from Tag
  • Abstract
Name of the tag.

Instance fields

stringThese members are not documented.
string
truefalse
string
dir
truefalse
dropzone
bool
string
string
string
string
bool
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
string
truefalse
string
int?
string