Class TagBase
A generic tag object - used to create any kind of tag
Inheritance
System.Object
ToSic.Razor.Markup.RawHtmlString
TagBase
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<
ITag>
System.Collections.IEnumerable
Assembly: ToSic.Razor.dll
Syntax
public abstract class TagBase : RawHtmlString, IRawHtmlString, IHtmlString, ITag, IEnumerable<ITag>, IEnumerable
Constructors
|
Improve this Doc
View Source
TagBase(TagBase, String, String, TagChildren, Object[], Attributes, TagOptions)
Declaration
protected TagBase(TagBase original = null, string name = null, string tagOverride = null, TagChildren children = null, object[] content = null, Attributes attributes = null, TagOptions options = null)
Parameters
Properties
|
Improve this Doc
View Source
IsImmutable
Special: Determines if the object is immutable.
If this is true (new mode), then any call to adding attributes or content will return a new object.
If it is false (classic mode) then any call to change something actually changes the current object and returns it.
Declaration
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public bool IsImmutable { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TagAttributes
All attributes of this tag
Declaration
public Attributes TagAttributes { get; }
Property Value
|
Improve this Doc
View Source
TagChildren
Declaration
public TagChildren TagChildren { get; }
Property Value
|
Improve this Doc
View Source
TagEnd
Declaration
public RawHtmlString TagEnd { get; }
Property Value
Type |
Description |
ToSic.Razor.Markup.RawHtmlString |
|
|
Improve this Doc
View Source
TagName
Declaration
public string TagName { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TagOptions
TagBase serialization options, like what quotes to use
If null (allowed), will use defaults.
Declaration
public virtual TagOptions TagOptions { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public RawHtmlString TagStart { get; }
Property Value
Type |
Description |
ToSic.Razor.Markup.RawHtmlString |
|
Methods
|
Improve this Doc
View Source
ApplyChanges(CloneChanges)
Declaration
protected void ApplyChanges(CloneChanges changes)
Parameters
Type |
Name |
Description |
ToSic.Razor.Markup.CloneChanges |
changes |
|
|
Improve this Doc
View Source
PreProcessNewChild(Object)
Declaration
protected virtual object PreProcessNewChild(object newChild)
Parameters
Type |
Name |
Description |
System.Object |
newChild |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
ToString()
Gets the HTML encoded value.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
ToSic.Razor.Markup.RawHtmlString.ToString()
Operators
|
Improve this Doc
View Source
Addition(Boolean, TagBase)
Declaration
public static string operator +(bool a, TagBase b)
Parameters
Type |
Name |
Description |
System.Boolean |
a |
|
TagBase |
b |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Addition(Int32, TagBase)
Declaration
public static string operator +(int a, TagBase b)
Parameters
Type |
Name |
Description |
System.Int32 |
a |
|
TagBase |
b |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Addition(String, TagBase)
Declaration
public static string operator +(string a, TagBase b)
Parameters
Type |
Name |
Description |
System.String |
a |
|
TagBase |
b |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Addition(TagBase, Boolean)
Declaration
public static string operator +(TagBase a, bool b)
Parameters
Type |
Name |
Description |
TagBase |
a |
|
System.Boolean |
b |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Addition(TagBase, Int32)
Declaration
public static string operator +(TagBase a, int b)
Parameters
Type |
Name |
Description |
TagBase |
a |
|
System.Int32 |
b |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Addition(TagBase, String)
Declaration
public static string operator +(TagBase a, string b)
Parameters
Type |
Name |
Description |
TagBase |
a |
|
System.String |
b |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Addition(TagBase, TagBase)
Declaration
public static TagBase operator +(TagBase a, TagBase b)
Parameters
Returns
|
Improve this Doc
View Source
UnaryPlus(TagBase)
Declaration
public static TagBase operator +(TagBase a)
Parameters
Returns
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable