Example #1
0
        public static FontStyle NodeTypeToFontStyle(ContentNodeType type)
        {
            switch (type)
            {
            case PageOfBob.NFountain.ContentNodeType.Bold:
                return(FontStyle.Bold);

            case PageOfBob.NFountain.ContentNodeType.Italic:
                return(FontStyle.Italic);

            case PageOfBob.NFountain.ContentNodeType.BoldItalic:
                return(FontStyle.BoldItalic);

            case PageOfBob.NFountain.ContentNodeType.Underline:
                return(FontStyle.Underline);

            default:
                return(FontStyle.None);
            }
        }
Example #2
0
 protected ContentNode(ContentNodeType type)
 {
     Type = type;
 }
Example #3
0
 public static FontStyle NodeTypeToFontStyle(ContentNodeType type)
 {
     switch (type) {
         case PageOfBob.NFountain.ContentNodeType.Bold:
             return FontStyle.Bold;
         case PageOfBob.NFountain.ContentNodeType.Italic:
             return FontStyle.Italic;
         case PageOfBob.NFountain.ContentNodeType.BoldItalic:
             return FontStyle.BoldItalic;
         case PageOfBob.NFountain.ContentNodeType.Underline:
             return FontStyle.Underline;
         default:
             return FontStyle.None;
     }
 }
Example #4
0
 public ContentNode(ContentNodeType type, string value, ContentNode[] children)
 {
     Type = type;
     Children = children;
     Value = value;
 }
Example #5
0
 public ContentNode(ContentNodeType type, string value, ContentNode[] children)
 {
     Type     = type;
     Children = children;
     Value    = value;
 }