In This Article

MarkupLabelAnchorElement Class

Represents a MarkupLabelElement for an a element.

public class MarkupLabelAnchorElement : MarkupLabelElement, IDisposable, ILogicalTreeNode
Inheritance:
object MarshalByRefObject DisposableObject LogicalTreeNodeBase MarkupLabelElement object
Implements:
IDisposable ILogicalTreeNode

Constructors

MarkupLabelAnchorElement()

Initializes a new instance of the MarkupLabelAnchorElement class.

public MarkupLabelAnchorElement()

Properties

HRef

Gets or sets the HREF to which the anchor is linked.

public string HRef { get; set; }

Property Value

string:

The HREF to which the anchor is linked.

Methods

GetDefaultCssData()

Gets the default MarkupLabelCssData for the element.

public override MarkupLabelCssData GetDefaultCssData()

Returns

MarkupLabelCssData:

The default MarkupLabelCssData for the element.

GetForeColor(UIElementDrawState)

Gets the foreground Color to use for drawing the element.

public override Color GetForeColor(UIElementDrawState drawState)
Parameter Type Description
drawState UIElementDrawState

A UIElementDrawState indicating the draw state.

Returns

Color:

The foreground Color to use for drawing the element.

Inherited Members