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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
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
- item
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
The shape, field, and child field to which the mouse is pointing.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.