TagBuilder Members
Represents a class that is used by HTML helpers to build HTML elements.
The TagBuilder type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
AddCssClass | Adds the specified CSS class to the tag-builder attributes. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateId | Generates the ID by using the specified name. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MergeAttribute | Overloaded. Merges the CSS class attribute. | |
MergeAttributes<(Of <(TKey, TValue>)>) | Overloaded. | |
SetInnerText | Sets the inner text. | |
ToString | Overloaded. Returns a string that represents the current object. |
Properties
Name | Description | |
---|---|---|
Attributes | Gets or sets the CSS class attributes. | |
IdAttributeDotReplacement | Gets or sets the character that is used to replace the dot in the ID. | |
InnerHtml | Gets or sets the inner HTML. | |
TagName | Gets or sets the name of the tag. |
版权声明:本文原创发表于 博客园,作者为 imbob,博客 http://imbob.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则视为侵权。
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则视为侵权。