Class HtmlTagWriter
Inheritance
System.Object
HtmlTagWriter
Assembly: ImageVault.Common.dll
Syntax
public class HtmlTagWriter : Object, IHtmlWriter
Constructors
HtmlTagWriter(String, HtmlClosingTag)
Declaration
public HtmlTagWriter(string tagName, HtmlClosingTag closingTag)
Parameters
Methods
AppendChild(String, HtmlClosingTag)
Appends a child to the writer
Declaration
public HtmlTagWriter AppendChild(string tagName, HtmlClosingTag closingTag)
Parameters
Returns
AppendText(String)
Declaration
public void AppendText(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
RemoveAttribute(String)
Removes the attribute with the supplied name
Declaration
public void RemoveAttribute(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
SetAttribute(String, Boolean)
Declaration
public void SetAttribute(string attributeName, bool value)
Parameters
Type |
Name |
Description |
System.String |
attributeName |
|
System.Boolean |
value |
|
SetAttribute(String, String)
Sets the supplied attribute
Declaration
public void SetAttribute(string name, string value = null)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
value |
|
SetIfExists(String, String)
Sets the attribute if it's value exists in the supplied context
Declaration
public void SetIfExists(string attributeName, string attributeValue)
Parameters
Type |
Name |
Description |
System.String |
attributeName |
|
System.String |
attributeValue |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Write(StringBuilder)
Declaration
public void Write(StringBuilder sb)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
sb |
|
Implements
Extension Methods