BBCodeNode Class

Represents a BBCode node.

Definition

Namespace: DevCase.Core.DataProcessing.Html.BBCode
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public class BBCodeNode
Inheritance
Object    BBCodeNode
Derived

Constructors

BBCodeNode(String) Initializes a new instance of the BBCodeNode class.
BBCodeNode(String, String) Initializes a new instance of the BBCodeNode class.
BBCodeNode(String, String, Boolean) Initializes a new instance of the BBCodeNode class.

Properties

Attribute Gets or sets this node's attribute.

The Attribute is the part of the tag that comes after the equals sign.

It is optional, and this property may return either null or an empty string.

Children Gets an array of this node's child nodes
ItemInt32 Gets the child BBCodeNode.
ItemString Gets an array of children BBCodeNode with the specified TagName
Parent Gets the parent node of this node.
Singular Gets a value indicating whether this node is singular.

Singular nodes are self closing and can have no children.

TagName Gets the tag name of this node.

The tag name is the main part of the tag, and is mandatory.

Methods

AppendChild(BBCodeNode) Adds a new child node at the end of this node's descendants.
AppendChild(String) Adds a new child node at the end of this node's descendants.
AppendChild(String, String) Adds a new child node at the end of this node's descendants
Clone Creates a recursive copy of the current nodes and its children.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
InsertAfter Inserts a new child node after the reference node passed.
InsertBefore Inserts a new child node before the reference node passed.
PrependChild Adds a new child node at the beginning of this node's descendants.
RemoveAll Removes all child nodes.
RemoveChild Removes a specific child node.
ReplaceChild Replaces a specific child node with another.
ToString Recursively generates the BBCode representation of the current node and its children.
(Overrides ObjectToString)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also