|
using System;
namespace AngleSharp.DOM.Html
{
/// <summary>
/// Represents the HTML body element.
/// </summary>
[DOM("HTMLBodyElement")]
public sealed class HTMLBodyElement : HTMLElement
{
#region Constant
/// <summary>
/// The body tag.
/// </summary>
internal const String Tag = "body";
#endregion
#region ctor
/// <summary>
/// Creates a HTML body element.
/// </summary>
internal HTMLBodyElement()
{
_name = Tag;
}
#endregion
#region Properties
/// <summary>
/// Gets or sets the color of active links (after mouse-button down, but before mouse-button up).
/// </summary>
[DOM("aLink")]
public String ALink
{
get { return GetAttribute("alink"); }
set { SetAttribute("alink", value); }
}
/// <summary>
/// Gets or sets the URI of the background texture tile image.
/// </summary>
[DOM("background")]
public String Background
{
get { return GetAttribute("background"); }
set { SetAttribute("background", value); }
}
/// <summary>
/// Gets or sets the document background color.
/// </summary>
[DOM("bgColor")]
public String BgColor
{
get { return GetAttribute("bgcolor"); }
set { SetAttribute("bgcolor", value); }
}
/// <summary>
/// Gets or sets color of links that are not active and unvisited.
/// </summary>
[DOM("link")]
public String Link
{
get { return GetAttribute("link"); }
set { SetAttribute("link", value); }
}
/// <summary>
/// Gets or sets document text color.
/// </summary>
[DOM("text")]
public String Text
{
get { return GetAttribute("text"); }
set { SetAttribute("text", value); }
}
/// <summary>
/// Gets or sets color of links that have been visited by the user.
/// </summary>
[DOM("vLink")]
public String VLink
{
get { return GetAttribute("vlink"); }
set { SetAttribute("vlink", value); }
}
#endregion
#region Internal properties
/// <summary>
/// Gets if the node is in the special category.
/// </summary>
protected internal override Boolean IsSpecial
{
get { return true; }
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Florian lives in Munich, Germany. He started his programming career with Perl. After programming C/C++ for some years he discovered his favorite programming language C#. He did work at Siemens as a programmer until he decided to study Physics.
During his studies he worked as an IT consultant for various companies. After graduating with a PhD in theoretical particle Physics he is working as a senior technical consultant in the field of home automation and IoT.
Florian has been giving lectures in C#, HTML5 with CSS3 and JavaScript, software design, and other topics. He is regularly giving talks at user groups, conferences, and companies. He is actively contributing to open-source projects. Florian is the maintainer of AngleSharp, a completely managed browser engine.