HelperMethods.StripAccelerators 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
StripAccelerators(String) |
已淘汰.
使用 MsoPwchStripWtz 所使用的相同演算法,將非逸出加速器標記 ( &') 從指定的字串中移除, (錯誤和所有) :: 從字串移除奇數 '&' 字元。 根據 DrawText,'&'s 的連續配對會留下實際的 '&' 字元,而且即使只有最後一個可能會加上底線,也會移除所有奇數 '&'s。 如果 『&』 發生在剖析內,則也會移除 『&』 後面的剖析和字元。這適用於移除格式為 (&N) 的加號字串,這些字串會附加至某些 FE 語言版本的標籤。 注意:我們不會檢查語言是否執行此動作,亦即,假設 (&N) 卡在其他語言中沒有任何實際標籤。 |
StripAccelerators(String, Char) |
已淘汰.
使用 MsoPwchStripWtz 所使用的相同演算法,從指定的字串中移除非逸出加速器標記, (Bug 和所有) ,以傳送至 wit:
從字串中比
如果在剖析內發生字元比對 注意:我們不會檢查語言是否執行此動作,亦即我們假設其他語言中沒有任何實際標籤, (%accessSpecifier%N) 停滯。 |
StripAccelerators(String, Object) |
已淘汰.
傳回具有指定存取金鑰規範的輸入字串 |
StripAccelerators(String)
警告
This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.StripAccelerators instead. You may need to add a reference to Microsoft.VisualStudio.Utilities
使用 MsoPwchStripWtz 所使用的相同演算法,將非逸出加速器標記 ( &') 從指定的字串中移除, (錯誤和所有) ::
從字串移除奇數 '&' 字元。 根據 DrawText,'&'s 的連續配對會留下實際的 '&' 字元,而且即使只有最後一個可能會加上底線,也會移除所有奇數 '&'s。
如果 『&』 發生在剖析內,則也會移除 『&』 後面的剖析和字元。這適用於移除格式為 (&N) 的加號字串,這些字串會附加至某些 FE 語言版本的標籤。
注意:我們不會檢查語言是否執行此動作,亦即,假設 (&N) 卡在其他語言中沒有任何實際標籤。
public:
static System::String ^ StripAccelerators(System::String ^ input);
public:
static Platform::String ^ StripAccelerators(Platform::String ^ input);
static std::wstring StripAccelerators(std::wstring const & input);
[System.Obsolete("This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.StripAccelerators instead. You may need to add a reference to Microsoft.VisualStudio.Utilities")]
public static string StripAccelerators (string input);
[<System.Obsolete("This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.StripAccelerators instead. You may need to add a reference to Microsoft.VisualStudio.Utilities")>]
static member StripAccelerators : string -> string
Public Shared Function StripAccelerators (input As String) As String
參數
- input
- String
要帶狀的字串。
傳回
input
已移除快捷鍵。
- 屬性
適用於
StripAccelerators(String, Char)
警告
This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.StripAccelerators instead. You may need to add a reference to Microsoft.VisualStudio.Utilities.
使用 MsoPwchStripWtz 所使用的相同演算法,從指定的字串中移除非逸出加速器標記, (Bug 和所有) ,以傳送至 wit:
從字串中比 accessSpecifier
對的奇數位元。
根據 DrawText,連續配對的字元 accessSpecifier
比對會保留單一字元比對 accessSpecifier
,而且即使只有最後一個字元可能會加上底線,也會移除所有奇數位符比 accessSpecifier
對。
如果在剖析內發生字元比對 accessSpecifier
,則也會移除符合字元後面的 accessSpecifier
剖析和字元。這對於移除格式的加號字串很有用, (%accessSpecifier%N) 附加至某些 FE 語言版本的標籤。
注意:我們不會檢查語言是否執行此動作,亦即我們假設其他語言中沒有任何實際標籤, (%accessSpecifier%N) 停滯。
public:
static System::String ^ StripAccelerators(System::String ^ input, char accessSpecifier);
public:
static Platform::String ^ StripAccelerators(Platform::String ^ input, char16 accessSpecifier);
static std::wstring StripAccelerators(std::wstring const & input, char accessSpecifier);
[System.Obsolete("This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.StripAccelerators instead. You may need to add a reference to Microsoft.VisualStudio.Utilities.")]
public static string StripAccelerators (string input, char accessSpecifier);
[<System.Obsolete("This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.StripAccelerators instead. You may need to add a reference to Microsoft.VisualStudio.Utilities.")>]
static member StripAccelerators : string * char -> string
Public Shared Function StripAccelerators (input As String, accessSpecifier As Char) As String
參數
- input
- String
要帶狀的字串。
- accessSpecifier
- Char
指定要視為存取金鑰規範的字元。
傳回
input
已移除快捷鍵。
- 屬性
適用於
StripAccelerators(String, Object)
警告
This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.StripAccelerators instead. You may need to add a reference to Microsoft.VisualStudio.Utilities.
傳回具有指定存取金鑰規範的輸入字串
public:
static System::String ^ StripAccelerators(System::String ^ input, System::Object ^ accessKeySpecifier);
public:
static Platform::String ^ StripAccelerators(Platform::String ^ input, Platform::Object ^ accessKeySpecifier);
static std::wstring StripAccelerators(std::wstring const & input, winrt::Windows::Foundation::IInspectable const & accessKeySpecifier);
[System.Obsolete("This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.StripAccelerators instead. You may need to add a reference to Microsoft.VisualStudio.Utilities.")]
public static string StripAccelerators (string input, object accessKeySpecifier);
[<System.Obsolete("This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.StripAccelerators instead. You may need to add a reference to Microsoft.VisualStudio.Utilities.")>]
static member StripAccelerators : string * obj -> string
Public Shared Function StripAccelerators (input As String, accessKeySpecifier As Object) As String
參數
- input
- String
要移除存取金鑰規範的字串
- accessKeySpecifier
- Object
要帶狀的字元
傳回
- 屬性