From 522e1696315baaec71e9b4a7c19b7a2afd48e9a7 Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Fri, 16 Jun 2017 00:07:36 -0700 Subject: [PATCH] Add Heading --- Ooui/Heading.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Ooui/Heading.cs diff --git a/Ooui/Heading.cs b/Ooui/Heading.cs new file mode 100644 index 0000000..130a8d8 --- /dev/null +++ b/Ooui/Heading.cs @@ -0,0 +1,24 @@ +using System; + +namespace Ooui +{ + public class Heading : Element + { + public Heading (int level = 1) + : base ("h" + level) + { + } + + public Heading (int level, string text) + : this (level) + { + Text = text; + } + + public Heading (string text) + : this () + { + Text = text; + } + } +}