TagBuilder Methods

Visual Studio 2010

The TagBuilder type exposes the following members.

  NameDescription
Public method AddCssClass Adds the specified CSS class to the tag-builder attributes.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GenerateId Generates the id attribute for the tag by using the specified name.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MergeAttribute(String, String) Adds an attribute to the tag by using the specified key/value pair.
Public method MergeAttribute(String, String, Boolean) Adds an attribute to the tag by using the specified key/value pair.
Public method MergeAttributes<TKey, TValue>(IDictionary<TKey, TValue>) Adds an attribute to the specified collection of attributes for the tag.
Public method MergeAttributes<TKey, TValue>(IDictionary<TKey, TValue>, Boolean) Adds an attribute to the specified collection of attributes for the tag.
Public method SetInnerText Sets the inner text of the tag (element).
Public method ToString() Returns a string that represents the current object. (Overrides Object.ToString().)
Public method ToString(TagRenderMode) Returns a string that represents the current object by using the specified tag-render mode.
Top

Community Additions

ADD
Show: