TagImpl Class
The default implementation of Tags other than void elements.
public sealed class TagImpl : BaseTagImpl<Tag>, Tag
- Inheritance
- Implements
Constructors
|
Tag |
Initializes a new instance of the TagImpl class. |
Properties
| Name | |
| Name |
(Inherited from Base |
| Kind |
(Inherited from Abstract |
Methods
| Add(IEnumerable<Node>) |
Description copied from interface: Tag
|
| Add(Node[]) |
Description copied from interface: Tag
|
| Add(string) |
Description copied from interface: Tag
|
|
Accept(Node |
Description copied from class: AbstractNode
|
|
Get |
Description copied from class: AbstractNode
|
|
Create(Func<Tag |
Description copied from class: BaseTagImpl
|
|
Create |
Description copied from class: BaseTagImpl
|
| AddAttributes((string Name, string Value)[]) |
Description copied from interface: BaseTag (Inherited from Base |
| AddClass(string[]) |
Description copied from interface: BaseTag (Inherited from Base |
| AddEmptyAttributes(string[]) |
Description copied from interface: BaseTag (Inherited from Base |
| WithClass(string[]) |
Description copied from interface: BaseTag (Inherited from Base |
| WithId(string) |
Description copied from interface: BaseTag (Inherited from Base |
| Create(Func<TagStruct, TagStruct>) |
Gets a new element with the modifying function. (Inherited from Base |
| CreateAddingAttributes(IEnumerable<(string Name, string Value)>) |
Gets a new element with adding the specified attributes. (Inherited from Base |
| Accept(NodeVisitor) |
Description copied from interface: Node (Inherited from Abstract |
| ToString() |
(Inherited from Abstract |
| ToString(FormatOptions) |
Description copied from interface: Node (Inherited from Abstract |
| GetKind() |
Gets the kind of this node. (Inherited from Abstract |
| Equals(object) | (Inherited from object) |
| GetHashCode() | (Inherited from object) |
| GetType() | (Inherited from object) |
| MemberwiseClone() | (Inherited from object) |
Constructors Detail
TagImpl(string)
Initializes a new instance of the TagImpl class.
public TagImpl(string name)
Parameters
- name
- string
The name of this tag.
Properties Detail
Name
public override string Name { get; }
Property Value
Implements
Methods Detail
Add(IEnumerable<Node>)
public Tag Add(IEnumerable<Node> children)
Parameters
- children
- IEnumerable<Node>
Returns
Implements
Remarks
Description copied from interface: Tag
The node that this method returns has the same attributes of this object.
Add(Node[])
public Tag Add(params Node[] children)
Parameters
- children
- Node[]
Returns
Implements
Remarks
Description copied from interface: Tag
The node that this method returns has the same attributes of this object.
Add(string)
public Tag Add(string text)
Parameters
- text
- string
Returns
Implements
Remarks
Description copied from interface: Tag
The node that this method returns has the same attributes of this object.
Accept(NodeVisitor)
Description copied from class: AbstractNode
Description copied from interface: Node
Returns the object associated this node that is created with the specified visitor.
public override void Accept(NodeVisitor visitor)
Parameters
- visitor
-
Node
Visitor
Implements
See Also
- NodeVisitor
Description copied from class: AbstractNode
Description copied from interface: Node
GetKind()
Description copied from class: AbstractNode
Gets the kind of this node.
protected override NodeKind GetKind()
Returns
Create(Func<TagStruct, TagStruct>)
Description copied from class: BaseTagImpl
Gets a new element with the modifying function.
protected override Tag Create(Func<TagStruct, TagStruct> modify)
Parameters
Returns
CreateAddingAttributes(IEnumerable<(string Name, string Value)>)
Description copied from class: BaseTagImpl
Gets a new element with adding the specified attributes.
protected override Tag CreateAddingAttributes(IEnumerable<(string Name, string Value)> attributes)
Parameters
- attributes
- IEnumerable<(string Name, string Value)>