Ooui-tws-port/Ooui/Anchor.cs

36 lines
703 B
C#
Raw Normal View History

using System;
namespace Ooui
{
public class Anchor : Element
{
public string HRef {
2018-02-02 02:43:23 +00:00
get => GetStringAttribute ("href", "");
set => SetAttributeProperty ("href", value);
}
public string Target {
get => GetStringAttribute ("target", "");
set => SetAttributeProperty ("target", value);
}
public Anchor ()
: base ("a")
{
}
2018-02-03 07:00:24 +00:00
public Anchor (string href)
: this ()
{
HRef = href;
}
public Anchor (string href, string text)
: this ()
{
HRef = href;
Text = text;
}
}
}