Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TooltipMode - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TooltipMode

    Allows the user to define how to show the tooltip.

    Inheritance
    System.Object
    TooltipMode
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class TooltipMode : Enum
    Examples
        <SfDiagram Height="600px" Nodes="@NodeCollection" Tooltip="@Tooltip">
       </SfDiagram>
    @code{
       public ObservableCollection<DiagramNode> NodeCollection { get; set; }
       // Defines mode of the tooltip
       public DiagramTooltip Tooltip = new DiagramTooltip()
       {
           Content = "Nodes",
           OpenOn = TooltipMode.Auto
       };
       protected override void OnInitialized()
       {
           NodeCollection = new ObservableCollection<DiagramNode>();
           ///Defines nodes
           DiagramNode Node = new DiagramNode()
           {
               Width = 100,
               Height = 100,
               OffsetX = 200,
               OffsetY = 200,
               Constraints = NodeConstraints.Tooltip,
           };
           NodeCollection.Add(Node);
       }
    }

    Fields

    Auto

    Displays the tooltip when the object is dragged, scaled or rotated.

    Declaration
    public const TooltipMode Auto
    Field Value
    Type Description
    TooltipMode

    Custom

    Displays the tooltip based on the object.

    Declaration
    public const TooltipMode Custom
    Field Value
    Type Description
    TooltipMode

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved