menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ConnectorHyperlink - API Reference

    Show / Hide Table of Contents

    Class ConnectorHyperlink

    Defines the appearance and properties of the hyperlinks in the connector label.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramHyperlink
    ConnectorHyperlink
    Inherited Members
    DiagramHyperlink.Color
    DiagramHyperlink.Content
    DiagramHyperlink.Link
    DiagramHyperlink.TextDecoration
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ConnectorHyperlink : DiagramHyperlink
    Remarks

    The hyperlink can be customized by adding text, color. The Hyperlink can be set to the DiagramConnectorAnnotations of the connector.

    Examples
    <SfDiagram Height="600px" Connectors="@ConnectorsCollection">
    </SfDiagram>
    @code
    {
      public ObservableCollection<DiagramConnector> ConnectorsCollection { get; set; }
      protected override void OnInitialized()
      {
       ConnectorsCollection = new ObservableCollection<DiagramConnector>();
       DiagramConnector Connector = new DiagramConnector()
       {
         Width = 100,
         Height = 100,
         Annotations = new ObservableCollection<DiagramConnectorAnnotation>() {
         new DiagramConnectorAnnotation() {
         Hyperlink = new ConnectorHyperlink()
         {
            Link = "https://www.google.com",
            Color=”red”,
            Content=”Google”}
          }
         },
       };
       ConnectorsCollection.Add(Connector);
      }
     }

    Constructors

    ConnectorHyperlink()

    Defines the appearance and properties of the hyperlinks in the connector label.

    Declaration
    public ConnectorHyperlink()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved