Show / Hide Table of Contents

Class Hyperlink

Provides an inline-level content element that provides facilities for hosting hyperlinks.

Inheritance
System.Object
DependencyObject
UIElement
TextElement
Inline
Span
Hyperlink
Inherited Members
Span.Inlines
Span.VisualChildrenCount
Span.GetVisualChild(Int32)
Inline.FontSizeProperty
Inline.FontFamilyProperty
Inline.FontWeightProperty
Inline.FontStyleProperty
Inline.FontStretchProperty
Inline.ForegroundProperty
Inline.LanguageProperty
Inline.TextDecorationsProperty
Inline.TextDecorations
TextElement.CharacterSpacingProperty
TextElement.CharacterSpacing
TextElement.GetCharacterSpacing(DependencyObject)
TextElement.SetCharacterSpacing(DependencyObject, Int32)
TextElement.FontFamily
TextElement.GetFontFamily(DependencyObject)
TextElement.SetFontFamily(DependencyObject, FontFamily)
TextElement.FontSize
TextElement.GetFontSize(DependencyObject)
TextElement.SetFontSize(DependencyObject, Double)
TextElement.FontStretch
TextElement.GetFontStretch(DependencyObject)
TextElement.SetFontStretch(DependencyObject, FontStretch)
TextElement.FontStyle
TextElement.GetFontStyle(DependencyObject)
TextElement.SetFontStyle(DependencyObject, FontStyle)
TextElement.FontWeight
TextElement.GetFontWeight(DependencyObject)
TextElement.SetFontWeight(DependencyObject, FontWeight)
TextElement.Foreground
TextElement.GetForeground(DependencyObject)
TextElement.SetForeground(DependencyObject, Brush)
TextElement.Language
TextElement.Name
TextElement.FindName(String)
TextElement.ContentEnd
TextElement.ContentStart
TextElement.ElementEnd
TextElement.ElementStart
TextElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
TextElement.OnVisualParentChanged(DependencyObject)
TextElement.CreateDomElement(Object, Object)
UIElement.TransformToVisual(UIElement)
UIElement.OnCreateAutomationPeer()
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.ManageIsEnabled(Boolean)
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.OnGotFocus(RoutedEventArgs)
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.OnLostFocus(RoutedEventArgs)
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Documents
Assembly: OpenSilver.dll
Syntax
public sealed class Hyperlink : Span, IUIElement, IDependencyObject

Constructors

| Improve this Doc View Source

Hyperlink()

Initializes a new instance of the Hyperlink class.

Declaration
public Hyperlink()

Fields

| Improve this Doc View Source

CommandParameterProperty

Identifies the CommandParameter dependency property.

Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

CommandProperty

Identifies the Command dependency property.

Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MouseOverForegroundProperty

Identifies the MouseOverForeground dependency property.

Declaration
public static readonly DependencyProperty MouseOverForegroundProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MouseOverTextDecorationsProperty

Identifies the MouseOverTextDecorations dependency property.

Declaration
public static readonly DependencyProperty MouseOverTextDecorationsProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

NavigateUriProperty

Identifies the NavigateUri dependency property.

Declaration
public static readonly DependencyProperty NavigateUriProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

TargetNameProperty

Identifies the TargetName dependency property.

Declaration
public static readonly DependencyProperty TargetNameProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Command

Gets or sets a command to associate with the Hyperlink.

Declaration
public ICommand Command { get; set; }
Property Value
Type Description
System.Windows.Input.ICommand

A command to associate with the Hyperlink. The default is null.

| Improve this Doc View Source

CommandParameter

Gets or sets command parameters associated with the command specified by the Command property.

Declaration
public object CommandParameter { get; set; }
Property Value
Type Description
System.Object

An object specifying parameters for the command specified by the Command property. The default is null.

| Improve this Doc View Source

MouseOverForeground

Gets or sets the brush that paints the foreground color when the mouse pointer moves over the Hyperlink.

Declaration
public Brush MouseOverForeground { get; set; }
Property Value
Type Description
Brush

The brush that paints the foreground color when the mouse pointer moves over the Hyperlink.

| Improve this Doc View Source

MouseOverTextDecorations

Gets or sets the TextDecorationCollection that decorates the Hyperlink.

Declaration
public TextDecorationCollection MouseOverTextDecorations { get; set; }
Property Value
Type Description
TextDecorationCollection

A TextDecorationCollection that decorates the Hyperlink.

| Improve this Doc View Source

NavigateUri

Gets or sets a URI to navigate to when the Hyperlink is activated.

Declaration
public Uri NavigateUri { get; set; }
Property Value
Type Description
System.Uri

The URI to navigate to when the Hyperlink is activated. The default is null.

| Improve this Doc View Source

TargetName

Gets or sets the name of a target window or frame for the Hyperlink.

Declaration
public string TargetName { get; set; }
Property Value
Type Description
System.String

A string that specifies the name of a target window or frame for the Hyperlink.

Methods

| Improve this Doc View Source

INTERNAL_AttachToDomEvents()

Declaration
public override void INTERNAL_AttachToDomEvents()
Overrides
UIElement.INTERNAL_AttachToDomEvents()
| Improve this Doc View Source

INTERNAL_DetachFromDomEvents()

Declaration
public override void INTERNAL_DetachFromDomEvents()
Overrides
UIElement.INTERNAL_DetachFromDomEvents()
| Improve this Doc View Source

INTERNAL_OnAttachedToVisualTree()

Declaration
protected override void INTERNAL_OnAttachedToVisualTree()
Overrides
Span.INTERNAL_OnAttachedToVisualTree()

Events

| Improve this Doc View Source

Click

Occurs when the left mouse button is clicked on a Hyperlink.

Declaration
public event RoutedEventHandler Click
Event Type
Type Description
RoutedEventHandler

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source