共用方式為


RibbonTab.Label Property

Definition

Gets or sets the text that appears on the tab.

public:
 property System::String ^ Label { System::String ^ get(); void set(System::String ^ value); };
public string Label { get; set; }
member this.Label : string with get, set
Public Property Label As String

Property Value

A string that represents the text for the tab.

Remarks

For Office built-in tabs, this property cannot be changed at run time.

For custom tabs, the text can be changed at run time before the Ribbon is loaded.

Applies to