public ContentMetadata(ContentMetadata metadata) { if (metadata != null) { foreach (KeyValuePair <string, string> pair in metadata) { this.Add(pair.Key, pair.Value); } } }
public void Load(XmlReader reader) { Metadata = new ContentMetadata(); StyleID = reader.GetAttribute("Style"); while (reader.Read()) { if (reader.NodeType == XmlNodeType.Element && reader.Name == "Meta") { Metadata.Add(reader.GetAttribute("Key"), reader.GetAttribute("Value")); } else if (reader.NodeType == XmlNodeType.EndElement && reader.Name == "Tag") { reader.Read(); break; } } }
public RichTextTag(string styleID, object tag) { StyleID = styleID; Tag = tag; Metadata = null; }
public RichTextTag(string styleID) { StyleID = styleID; Tag = null; Metadata = null; }
public RichTextTag() { StyleID = string.Empty; Tag = null; Metadata = null; }