PageCatalogPart.ToolTip 属性

定义

在呈现 PageCatalogPart 控件时,Web 部件控件集不使用此继承的属性。This inherited property is not used by the Web Parts control set when rendering a PageCatalogPart control. 重写该属性仅仅是为了避免它在 Microsoft Visual Studio 2005Microsoft Visual Studio 2005 设计器工具中出现。The property is overridden only for the purpose of preventing it from appearing in Microsoft Visual Studio 2005Microsoft Visual Studio 2005 designer tools.

public:
 virtual property System::String ^ ToolTip { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.Themeable(false)]
public override string ToolTip { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.Themeable(false)>]
member this.ToolTip : string with get, set
Public Overrides Property ToolTip As String

属性值

String

包含工具提示内容的字符串。A string that contains the content of a ToolTip.

属性

注解

ToolTip作为控件的成员的属性未在用于 PageCatalogPart 呈现控件的 Web 部件控件集内的任何位置使用。The ToolTip property, as a member of the PageCatalogPart control, is not used anywhere within the Web Parts control set for rendering the control. 因此,不应使用此属性;设置它不会对呈现产生任何影响。Therefore, you should not use this property; setting it has no effect on rendering.

若要防止开发人员使用此属性,请将代码特性设置为在 Visual Studio 中隐藏它。To prevent developers from using this property, code attributes are set on it to hide it in Visual Studio. PageCatalogPart Visual Studio 中使用控件时, ToolTip 属性在 "属性" 窗格或 IntelliSense 中不可见。When you work with a PageCatalogPart control in Visual Studio, the ToolTip property is not visible in the Properties pane or IntelliSense.

如果要使用此属性,则需要创建从类继承的自定义类 CatalogPartIf you want to use this property, you need to create a custom class that inherits from the CatalogPart class. 自定义类可以使用继承的 ToolTip 属性,也可以重写该属性并更改其行为。The custom class can either use the inherited ToolTip property as it is, or override it and change its behavior.

无法通过主题或样式表主题设置此属性。This property cannot be set by themes or style sheet themes. 有关详细信息,请参阅 ThemeableAttributeASP.NET 主题和外观For more information, see ThemeableAttribute and ASP.NET Themes and Skins.

适用于

另请参阅