RibbonRadioButton.Label 屬性

定義

取得或設定顯示在控制項旁邊或下方的文字。

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

屬性值

顯示在控制項旁邊或下方的文字。 已註冊的預設值是 null。 如需可能會影響該值的相關詳細資訊,請參閱 相依性屬性值優先順序

範例

下列範例示範如何在 上 RibbonRadioButton 設定 Label 屬性。

<ribbon:RibbonRadioButton Label="Color 1" 
                          SmallImageSource="Images/RightArrowShort_Green16.png" 
                          LargeImageSource="Images/RightArrowShort_Green32.png"
                          KeyTip="C1" />
<ribbon:RibbonRadioButton Label="Color 2" 
                          SmallImageSource="Images/RightArrowShort_Blue16.png" 
                          LargeImageSource="Images/RightArrowShort_Blue32.png"
                          KeyTip="C2" />
<ribbon:RibbonRadioButton Label="Color 3" 
                          SmallImageSource="Images/RightArrowShort_Orange16.png" 
                          LargeImageSource="Images/RightArrowShort_Orange32.png"
                          KeyTip="C3" />

備註

設定 上的 IsLabelVisibleControlSizeDefinition 屬性,以控制標籤的可見度。

相依性屬性資訊

識別碼欄位 LabelProperty
中繼資料屬性設定為 true

適用於