Panel.GroupingText 属性
定义
获取或设置面板控件中包含的控件组的标题。Gets or sets the caption for the group of controls that is contained in the panel control.
public:
virtual property System::String ^ GroupingText { System::String ^ get(); void set(System::String ^ value); };
public virtual string GroupingText { get; set; }
member this.GroupingText : string with get, set
Public Overridable Property GroupingText As String
属性值
面板控件中包含的子控件的标题文本。The caption text for the child controls contained in the panel control. 默认值为空字符串("")。The default is an empty string ("").
注解
使用 GroupingText 属性可为控件中包含的控件组显示框架和标题 Panel 。Use the GroupingText property to display a frame and caption for the group of controls that is contained in the Panel control.
GroupingText控件的值 Panel 是使用 HTML 4.0 规范中引入的字段集和图例元素呈现的。The GroupingText value of a Panel control is rendered using the FIELDSET and LEGEND elements, which were introduced in the HTML 4.0 specification. 如果客户端浏览器使用 HTML 3.2,则 GroupingText 不会呈现此值。If the client browser uses HTML 3.2, the GroupingText value is not rendered. 请参阅客户端浏览器文档,了解有关字段集和图例元素显示方式的详细信息。Refer to your client browser documentation for details on how the FIELDSET and LEGEND elements are displayed.
设置此属性后,可以使用设计器工具自动将此属性的值保存到资源文件中。The value of this property, when set, can be saved automatically to a resource file by using a designer tool. 有关详细信息,请参阅 LocalizableAttribute 和 ASP.NET 全球化和本地化。For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.