Class LazyHtmlAttributes
HtmlAttributes class that evaluates a given HTML generator when .ToHtmlString() is called.
Implements
Microsoft.AspNetCore.Html.IHtmlContent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ChameleonForms
Assembly: ChameleonForms.Core.dll
Syntax
public class LazyHtmlAttributes : HtmlAttributes, IHtmlContent
Constructors
| Improve this Doc View SourceLazyHtmlAttributes(Func<HtmlAttributes, IHtmlContent>)
Construct a LazyHtmlAttributes class.
Declaration
public LazyHtmlAttributes(Func<HtmlAttributes, IHtmlContent> htmlGenerator)
Parameters
Type | Name | Description |
---|---|---|
System.Func<HtmlAttributes, Microsoft.AspNetCore.Html.IHtmlContent> | htmlGenerator | The generator to use to generate the HTML when .ToHtmlString() is called |
Methods
| Improve this Doc View SourceWriteTo(TextWriter, HtmlEncoder)
Invokes the given HTML generator to return HTML.
Declaration
public override void WriteTo(TextWriter writer, HtmlEncoder encoder)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | writer | |
System.Text.Encodings.Web.HtmlEncoder | encoder |
Overrides
Implements
Microsoft.AspNetCore.Html.IHtmlContent