2017-12-28 20:01:00 +00:00
|
|
|
|
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);
|
2017-12-28 20:01:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-02-02 06:52:39 +00:00
|
|
|
|
public string Target {
|
|
|
|
|
get => GetStringAttribute ("target", "");
|
|
|
|
|
set => SetAttributeProperty ("target", value);
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-28 20:01:00 +00:00
|
|
|
|
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;
|
|
|
|
|
}
|
2017-12-28 20:01:00 +00:00
|
|
|
|
}
|
|
|
|
|
}
|