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