次の方法で共有


TextTipData Class

Provides a default implementation of IVsTextTipData for use in the IVsTextTipWindow for displaying tool tips.

This API is not CLS-compliant. The CLS-compliant alternative is [None].

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Package.TextTipData

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'宣言
<CLSCompliantAttribute(False)> _
<ComVisibleAttribute(True)> _
Public Class TextTipData _
    Implements IVsTextTipData
[CLSCompliantAttribute(false)]
[ComVisibleAttribute(true)]
public class TextTipData : IVsTextTipData

The TextTipData type exposes the following members.

Constructors

  Name Description
Public method TextTipData This constructor sets a service provider.

Top

Methods

  Name Description
Public method CheckCaretPosition Dismisses the tool tip based on mouse proximity to something that has a tool tip.
Public method Close Dismisses and releases the tool tip.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetContextStream Retrieves the position and length of the tool tip.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetTipFontInfo Returns the font of the tool tip window.
Public method GetTipText Populates pbstrText with the tip text.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsActive Tests if the tool tip window is currently visible.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnDismiss Sets the tool tip window to inactive.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Update Adds the supplied data to this text tip.
Public method UpdateView A virtual method that your subclass of TextTipData can implement to provide extra functionality on update.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Package Namespace