Beispiel #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);
            }
        }
Beispiel #2
0
 protected ContentNode(ContentNodeType type)
 {
     Type = type;
 }
Beispiel #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;
     }
 }
Beispiel #4
0
 public ContentNode(ContentNodeType type, string value, ContentNode[] children)
 {
     Type = type;
     Children = children;
     Value = value;
 }
Beispiel #5
0
 public ContentNode(ContentNodeType type, string value, ContentNode[] children)
 {
     Type     = type;
     Children = children;
     Value    = value;
 }