Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.TagSoup.RawTag

Summary

Outputs whatever content is passed to it without any escaping. Do not use unless there's absolutely no other way of doing something.

Constructors

RawTag(string value_)
Constructor.

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)
Enumerates the content.
string
  • Overrides: object.ToString()
Returns the content.
string
ToString(bool allTags)
  • Inherited from Tag
Converts the entire tag tree into a single string.
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.
stringThrows NotImplementedException.