ToolTip.StripAmpersands 屬性

定義

取得或設定值,以便判斷連字號 (&) 字元的處理方式。

public:
 property bool StripAmpersands { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(true)]
public bool StripAmpersands { get; set; }
[<System.ComponentModel.Browsable(true)>]
member this.StripAmpersands : bool with get, set
Public Property StripAmpersands As Boolean

屬性值

如果連字號字元會從工具提示文字中刪除,則為 true,否則為 false。 預設為 false。

屬性

備註

應用程式通常會針對多個用途使用相同的字串資源,例如功能表項和工具提示。 不過,功能表通常會在功能表項字串中啟用以連字元表示的快捷鍵。 工具提示不支援這項功能,因此根據預設,連字元只會顯示為一般字元。 StripAmpersands將屬性設定為true會從工具提示文字中移除所有連字元。

適用於

另請參閱