• Home
  • Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • ToSic.Razor.Blade
      • IHtmlTag
      • IHtmlTagsService
      • IScrub
      • Tag
      • Tags
      • Text
    • ToSic.Razor.Html5
      • A
      • Abbr
      • Address
      • Area
      • Article
      • Aside
      • Audio
      • B
      • Base
      • Bdi
      • Bdo
      • Blockquote
      • Br
      • Button
      • Canvas
      • Caption
      • Cite
      • Code
      • Col
      • Colgroup
      • Comment
      • Data
      • Datalist
      • Dd
      • Del
      • Details
      • Dfn
      • Dialog
      • Div
      • Dl
      • Dt
      • Em
      • Embed
      • Fieldset
      • Figcaption
      • Figure
      • Footer
      • Form
      • H1
      • H2
      • H3
      • H4
      • H5
      • H6
      • Head
      • Header
      • Hr
      • I
      • Icon
      • Iframe
      • Img
      • Input
      • Ins
      • Kbd
      • Label
      • Legend
      • Li
      • Link
      • Main
      • Map
      • Mark
      • Meta
      • MetaOg
      • Meter
      • Nav
      • Noscript
      • Object
      • Ol
      • Optgroup
      • Option
      • Output
      • P
      • Param
      • Picture
      • Pre
      • Progress
      • Q
      • Rp
      • Rt
      • Ruby
      • S
      • Samp
      • Script
      • ScriptJsonLd
      • Section
      • Select
      • Small
      • Source
      • Span
      • Strong
      • Style
      • Sub
      • Summary
      • Sup
      • Svg
      • Table
      • Tbody
      • Td
      • Template
      • Textarea
      • Tfoot
      • Th
      • Thead
      • Time
      • Tr
      • Track
      • U
      • Ul
      • Var
      • Video
      • Wbr
    • ToSic.Razor.Markup
      • Attribute
      • AttributeOptions
      • Attributes
      • ITag
      • Tag<T>
      • TagBase
      • TagChildren
      • TagCustom
      • TagList
      • TagOptions
      • TagText
    • ToSic.Razor.StartUp
      • StartUp

    Class TagBase

    A generic tag object - used to create any kind of tag

    Inheritance
    System.Object
    ToSic.Razor.Markup.RawHtmlString
    TagBase
    Tag<T>
    Implements
    System.Web.IHtmlString
    ITag
    System.Collections.Generic.IEnumerable<ITag>
    System.Collections.IEnumerable
    Namespace: ToSic.Razor.Markup
    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
    Type Name Description
    TagBase original
    System.String name
    System.String tagOverride
    TagChildren children
    System.Object[] content
    Attributes attributes
    TagOptions options

    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
    Type Description
    Attributes
    Remarks

    Set may only be called once, on ApplyChanges

    | Improve this Doc View Source

    TagChildren

    Declaration
    public TagChildren TagChildren { get; }
    Property Value
    Type Description
    TagChildren
    Remarks

    Set may only be called once, on ApplyChanges

    | 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

    The tag name

    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
    Type Description
    TagOptions
    | Improve this Doc View Source

    TagStart

    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
    Type Name Description
    TagBase a
    TagBase b
    Returns
    Type Description
    TagBase
    | Improve this Doc View Source

    UnaryPlus(TagBase)

    Declaration
    public static TagBase operator +(TagBase a)
    Parameters
    Type Name Description
    TagBase a
    Returns
    Type Description
    TagBase

    Implements

    System.Web.IHtmlString
    ITag
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX