New to Telerik UI for ASP.NET Core? Start a free 30-day trial

LiteralNode class.

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class LiteralNode : IHtmlNode

Inheritance: objectLiteralNode

Implements: IHtmlNode

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

LiteralNode method.

C#
public LiteralNode(string content)
Parameters:contentstring

Properties

Children member.

C#
public IList<IHtmlNode> Children { get; }

Implements: IHtmlNode.Children

Content member.

C#
public IHtmlContent Content { get; set; }

Gets or sets the InnerHtml.

C#
public IHtmlContentBuilder InnerHtml { get; }

Implements: IHtmlNode.InnerHtml

Gets or sets the RenderMode.

C#
public TagRenderMode RenderMode { get; }

Implements: IHtmlNode.RenderMode

Gets or sets the TagName.

C#
public string TagName { get; }

Implements: IHtmlNode.TagName

Methods

AddClass method.

C#
public IHtmlNode AddClass(params string[] classes)
Parameters:classesstring[]Returns:

IHtmlNode

Implements: IHtmlNode.AddClass(params string[])

AppendTo method.

C#
public IHtmlNode AppendTo(IHtmlNode parent)
Parameters:parentIHtmlNodeReturns:

IHtmlNode

Implements: IHtmlNode.AppendTo(IHtmlNode)

Attribute method.

C#
public IHtmlNode Attribute(string key, string value, bool replaceExisting)
Parameters:keystringvaluestringreplaceExistingboolReturns:

IHtmlNode

Implements: IHtmlNode.Attribute(string, string, bool)

Attribute method.

C#
public IHtmlNode Attribute(string key, string value)
Parameters:keystringvaluestringReturns:

IHtmlNode

Implements: IHtmlNode.Attribute(string, string)

Attribute method.

C#
public string Attribute(string key)
Parameters:keystringReturns:

string

The result.

Implements: IHtmlNode.Attribute(string)

Attributes method.

C#
public AttributeDictionary Attributes()
Returns:

AttributeDictionary

Implements: IHtmlNode.Attributes()

Attributes method.

C#
public IHtmlNode Attributes(object attributes)
Parameters:attributesobjectReturns:

IHtmlNode

Implements: IHtmlNode.Attributes(object)

Attributes{TKey, TValue} method.

C#
public IHtmlNode Attributes<TKey, TValue>(IDictionary<TKey, TValue> attributes, bool replaceExisting)
Parameters:attributesIDictionary<TKey, TValue>replaceExistingboolReturns:

IHtmlNode

Implements: IHtmlNode.Attributes<TKey, TValue>(IDictionary<TKey, TValue>, bool)

Attributes{TKey, TValue} method.

C#
public IHtmlNode Attributes<TKey, TValue>(IDictionary<TKey, TValue> attributes)
Parameters:attributesIDictionary<TKey, TValue>Returns:

IHtmlNode

Implements: IHtmlNode.Attributes<TKey, TValue>(IDictionary<TKey, TValue>)

Css method.

C#
public IHtmlNode Css(string key, string value)
Parameters:keystringvaluestringReturns:

IHtmlNode

Implements: IHtmlNode.Css(string, string)

Html method.

C#
public IHtmlNode Html(string value)
Parameters:valuestringReturns:

IHtmlNode

Implements: IHtmlNode.Html(string)

PrependClass method.

C#
public IHtmlNode PrependClass(params string[] classes)
Parameters:classesstring[]Returns:

IHtmlNode

Implements: IHtmlNode.PrependClass(params string[])

RemoveAttribute method.

C#
public IHtmlNode RemoveAttribute(string key)
Parameters:keystringReturns:

IHtmlNode

Implements: IHtmlNode.RemoveAttribute(string)

RemoveClass method.

C#
public IHtmlNode RemoveClass(string @class)
Parameters:classstringReturns:

IHtmlNode

Implements: IHtmlNode.RemoveClass(string)

Template method.

C#
public Action<TextWriter> Template()
Returns:

Action<TextWriter>

Implements: IHtmlNode.Template()

Template method.

C#
public IHtmlNode Template(Action<TextWriter> value)
Parameters:valueAction<TextWriter>Returns:

IHtmlNode

Implements: IHtmlNode.Template(Action<TextWriter>)

Text method.

C#
public IHtmlNode Text(string value)
Parameters:valuestringReturns:

IHtmlNode

Implements: IHtmlNode.Text(string)

ToggleAttribute method.

C#
public IHtmlNode ToggleAttribute(string key, string value, bool condition)
Parameters:keystringvaluestringconditionboolReturns:

IHtmlNode

Implements: IHtmlNode.ToggleAttribute(string, string, bool)

ToggleClass method.

C#
public IHtmlNode ToggleClass(string @class, bool condition)
Parameters:classstringconditionboolReturns:

IHtmlNode

Implements: IHtmlNode.ToggleClass(string, bool)

ToggleCss method.

C#
public IHtmlNode ToggleCss(string key, string value, bool condition)
Parameters:keystringvaluestringconditionboolReturns:

IHtmlNode

Implements: IHtmlNode.ToggleCss(string, string, bool)

ToTagBuilder method.

C#
public TagBuilder ToTagBuilder()
Returns:

TagBuilder

Implements: IHtmlNode.ToTagBuilder()

WriteTo method.

C#
public void WriteTo(TextWriter output, HtmlEncoder encoder)
Parameters:outputTextWriterencoderHtmlEncoder

Implements: IHtmlNode.WriteTo(TextWriter, HtmlEncoder)