共用方式為


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

'宣告
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