One instance of the YTagBuilder class is used to build and render one HTML tag (similar to MVC's TagBuilder type).
YTagBuilder is no longer necessary as YetaWF can render HTML directly in components and views. Unfortunately, this is used in a lot of places. Eventually this will be removed. It's an unnecessary "simplification".
Namespace: YetaWF.Core.Support
Assembly: YetaWF.Core
Inheritance
public class YTagBuilder;
YTagBuilder | Constructor. |
Attributes | A dictionary of the tag's HTML attributes. | |
InnerHtml | Defines the tag's inner HTML. | |
Tag | The tag name. |
AddCssClass | Adds a CSS class to the tag. | |
AddRel | Adds a value to the rel attribute. | |
Equals | Determines whether the specified object is equal to the current object. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. | |
GetHashCode | Serves as the default hash function. | |
GetType | Gets the Type of the current instance. | |
MemberwiseClone | Creates a shallow copy of the current Object. | |
MergeAttribute | Adds a new attribute. Does not replace an already existing attribute. | |
MergeAttributes | Merges a given dictionary of HTML attributes into the tag's HTML attributes. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. | |
SetInnerText | Sets the tag's inner text, encoded for HTML. | |
ToString | Returns the current tag as HTML with default rendering <tag> </tag>. |
See Also YetaWF.Core Overview
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com