Class TextNode
A TextNode is a plain text that can be part of a html segment
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Common.Data.Display
Assembly: ImageVault.Common.dll
Syntax
public class TextNode : Node, ICloneable
Constructors
TextNode()
Initializes a new instance of the TextNode class.
Declaration
public TextNode()
TextNode(AttributeBindName, String)
Initializes a new instance of the TextNode class.
Declaration
public TextNode(AttributeBindName attributeBindName, string defaultContent = null)
Parameters
Type | Name | Description |
---|---|---|
AttributeBindName | attributeBindName | The AttributeBindName that should be used as content when the BindAttribute(String, AttributeBindName) method is called |
System.String | defaultContent | The default content if no matching value is found |
Properties
AttributeBindName
Get/Sets the AttributeBindName of the TextNode
Declaration
public AttributeBindName AttributeBindName { get; set; }
Property Value
Type | Description |
---|---|
AttributeBindName |
Content
Get/Sets the Content of the TextNode
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Bind(BindContext)
Binds the node according to the supplied context
Declaration
public override void Bind(BindContext context)
Parameters
Type | Name | Description |
---|---|---|
BindContext | context |
Overrides
BindAttribute(String, AttributeBindName)
Binds a value to a attribute
Declaration
[Obsolete("Use BindContext.MapAttribute and Bind(BindContext) instead")]
public override void BindAttribute(string value, AttributeBindName bindValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | |
AttributeBindName | bindValue |
Overrides
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override Node Clone()
Returns
Type | Description |
---|---|
Node | A new object that is a copy of this instance. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Implements
System.ICloneable