Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Support.YTagBuilder Class

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

Syntax

public class YTagBuilder;

Constructors

PublicYTagBuilderConstructor.

Properties

PublicAttributesA dictionary of the tag's HTML attributes.
PublicInnerHtmlDefines the tag's inner HTML.
PublicTagThe tag name.

Methods

PublicAddCssClassAdds a CSS class to the tag.
PublicAddRelAdds a value to the rel attribute.
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicMergeAttributeAdds a new attribute. Does not replace an already existing attribute.
PublicMergeAttributesMerges a given dictionary of HTML attributes into the tag's HTML attributes.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicSetInnerTextSets the tag's inner text, encoded for HTML.
PublicToStringReturns the current tag as HTML with default rendering <tag> </tag>.

See Also YetaWF.Core Overview