ClassHyperlinkField
Represents a hyperlink field.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class HyperlinkField : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldHyperlinkField
Implements:
Inherited Members
Constructors
HyperlinkField()
Initializes a new instance of the HyperlinkField class.
Declaration
public HyperlinkField()
HyperlinkField(HyperlinkInfo, DocumentFragment)
Initializes a new instance of the HyperlinkField class.
Declaration
public HyperlinkField(HyperlinkInfo info, DocumentFragment fragment)
Parameters
info
The hyperlink information.
fragment
The fragment representing the content of the hyperlink.
HyperlinkField(HyperlinkInfo, string)
Initializes a new instance of the HyperlinkField class.
Declaration
public HyperlinkField(HyperlinkInfo info, string hyperlinkText)
Parameters
info
The hyperlink information.
hyperlinkText
The text of the hyperlink.
Fields
LocationInFileProperty
Declaration
public static readonly FieldPropertyDefinition LocationInFileProperty
Field Value
NavigateUriProperty
The URI to navigate to.
Declaration
public static readonly FieldPropertyDefinition NavigateUriProperty
Field Value
TargetProperty
Declaration
public static readonly FieldPropertyDefinition TargetProperty
Field Value
Properties
FieldTypeName
Gets the name of the field type.
Declaration
public override string FieldTypeName { get; }
Property Value
Overrides
HyperlinkInfo
Gets or sets the hyperlink information.
Declaration
public HyperlinkInfo HyperlinkInfo { get; set; }
Property Value
The hyperlink information.
LocationInFile
Gets or sets the location in file.
Declaration
[XamlSerializable]
public string LocationInFile { get; set; }
Property Value
The location in file.
NavigateUri
Gets or sets the URI to navigate to..
Declaration
[XamlSerializable]
public string NavigateUri { get; set; }
Property Value
The navigate URI.
Methods
BuildCodeOverride()
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
Declaration
protected override void BuildCodeOverride()
Overrides
CopyPropertiesFrom(Field)
Copies all properties from another field of the same type.
Declaration
public override void CopyPropertiesFrom(Field fromField)
Parameters
fromField
The other field, which has to be of the same type as the current instance.
Overrides
CopyPropertiesFromCodeExpression(FieldCodeExpression)
Copies the field-specific properties from a FieldCodeExpression.
Declaration
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters
fieldCodeExpression
The field code expression.
Overrides
CreateInstance()
Creates a new instance of the current field class.
Declaration
public override Field CreateInstance()
Returns
The new field instance.
Overrides
GetResultFragment()
Builds the result fragment of the field.
Declaration
protected override DocumentFragment GetResultFragment()
Returns
The result fragment.
Overrides