Delen via


ShapeElement.GetToolTipText Method

Gets the tooltip text for the shape to which the mouse is pointing.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Overridable Function GetToolTipText ( _
    item As DiagramItem _
) As String
public virtual string GetToolTipText(
    DiagramItem item
)
public:
virtual String^ GetToolTipText(
    DiagramItem^ item
)
abstract GetToolTipText : 
        item:DiagramItem -> string  
override GetToolTipText : 
        item:DiagramItem -> string
public function GetToolTipText(
    item : DiagramItem
) : String

Parameters

Return Value

Type: System.String
The tooltip text for the shape.

Examples

public override string GetToolTipText(DslDiagrams::DiagramItem item)
{
return global::Fabrikam.CanonicalSample.CanonicalSampleDomainModel.SingletonResourceManager.GetString("PortNodeShapeTooltip");
}

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace