Add Heading

This commit is contained in:
Frank A. Krueger 2017-06-16 00:07:36 -07:00
parent a962e20ffd
commit 522e169631
1 changed files with 24 additions and 0 deletions

24
Ooui/Heading.cs Normal file
View File

@ -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;
}
}
}