New to Telerik UI for WinFormsStart a free 30-day trial

Represents a hyperlink field.

Definition

Constructors

Initializes a new instance of the HyperlinkField class.

C#
public HyperlinkField()

Initializes a new instance of the HyperlinkField class.

C#
public HyperlinkField(HyperlinkInfo info, DocumentFragment fragment)
Parameters:infoHyperlinkInfo

The hyperlink information.

fragmentDocumentFragment

The fragment representing the content of the hyperlink.

Initializes a new instance of the HyperlinkField class.

C#
public HyperlinkField(HyperlinkInfo info, string hyperlinkText)
Parameters:infoHyperlinkInfo

The hyperlink information.

hyperlinkTextstring

The text of the hyperlink.

Fields

C#
public static readonly string FieldType
C#
public static readonly FieldPropertyDefinition LocationInFileProperty

The URI to navigate to.

C#
public static readonly FieldPropertyDefinition NavigateUriProperty
C#
public static readonly FieldPropertyDefinition TargetProperty

Properties

Gets the name of the field type.

C#
public override string FieldTypeName { get; }

Overrides: Field.FieldTypeName

Gets or sets the hyperlink information.

C#
public HyperlinkInfo HyperlinkInfo { get; set; }
Property Value:

The hyperlink information.

Gets or sets the location in file.

C#
[XamlSerializable]
public string LocationInFile { get; set; }
Property Value:

The location in file.

Gets or sets the URI to navigate to..

C#
[XamlSerializable]
public string NavigateUri { get; set; }
Property Value:

The navigate URI.

Gets or sets the target of the hyperlink.

C#
[XamlSerializable]
public string Target { get; set; }
Property Value:

The target.

Methods

Builds the field-specific parts of the code fragment, using the current CodeBuilder.

C#
protected override void BuildCodeOverride()

Overrides: CodeBasedField.BuildCodeOverride()

Copies all properties from another field of the same type.

C#
public override void CopyPropertiesFrom(Field fromField)
Parameters:fromFieldField

The other field, which has to be of the same type as the current instance.

Overrides: CodeBasedField.CopyPropertiesFrom(Field)

Copies the field-specific properties from a FieldCodeExpression.

C#
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters:fieldCodeExpressionFieldCodeExpression

The field code expression.

Overrides: CodeBasedField.CopyPropertiesFromCodeExpression(FieldCodeExpression)

Creates a new instance of the current field class.

C#
public override Field CreateInstance()
Returns:

Field

The new field instance.

Overrides: Field.CreateInstance()

Builds the result fragment of the field.

C#
protected override DocumentFragment GetResultFragment()
Returns:

DocumentFragment

The result fragment.

Overrides: Field.GetResultFragment()