Class ConnectorTooltip
Represents the textual content that appears while the mouse is hovering over a connector.
Inherited Members
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class ConnectorTooltip : NodeTooltip
Examples
<SfDiagram Height="600px" Connectors="@ConnectorCollection">
</SfDiagram>
@code
{
//Defines diagram's connector collection
public ObservableCollection<DiagramConnector> ConnectorCollection = new ObservableCollection<DiagramConnector>();
protected override void OnInitialized()
{
DiagramConnector DiagramConnector = new DiagramConnector()
{
SourcePoint = new ConnectorSourcePoint() { X = 100, Y = 100 },
TargetPoint = new ConnectorTargetPoint() { X = 200, Y = 200 },
//Specify the segments types as straight.
Type = Segments.Straight,
Constraints = ConnectorConstraints.Default | ConnectorConstraints.Tooltip,
//Defines mouse over tooltip for a connector
Tooltip = new ConnectorTooltip()
{
//Sets the content of the tooltip
Content = "Connector1",
//Sets the position of the tooltip
Position = Syncfusion.Blazor.Popups.Position.BottomRight,
//Sets the tooltip position relative to the connector
RelativeMode = TooltipRelativeMode.Object
}
};
ConnectorCollection.Add(DiagramConnector);
}
}
Constructors
ConnectorTooltip()
Represents the textual content that appears while the mouse is hovering over a connector.
Declaration
public ConnectorTooltip()