예제 #1
0
 public ContentMetadata(ContentMetadata metadata)
 {
     if (metadata != null)
     {
         foreach (KeyValuePair <string, string> pair in metadata)
         {
             this.Add(pair.Key, pair.Value);
         }
     }
 }
예제 #2
0
        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;
                }
            }
        }
예제 #3
0
 public RichTextTag(string styleID, object tag)
 {
     StyleID  = styleID;
     Tag      = tag;
     Metadata = null;
 }
예제 #4
0
 public RichTextTag(string styleID)
 {
     StyleID  = styleID;
     Tag      = null;
     Metadata = null;
 }
예제 #5
0
 public RichTextTag()
 {
     StyleID  = string.Empty;
     Tag      = null;
     Metadata = null;
 }