HelperMethods Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Microsoft internal use only.
public ref class HelperMethods abstract sealed
public ref class HelperMethods abstract sealed
class HelperMethods abstract sealed
public static class HelperMethods
type HelperMethods = class
Public Class HelperMethods
- Inheritance
-
HelperMethods
Methods
AccessKeySpecifierFromObject(Object) |
Obsolete.
Converts the input object into an access key specifier. Objects of type char or single-character strings can be converted. If an object of a different type is passed in, & is returned. |
StripAccelerators(String, Char) |
Obsolete.
Strips non-escaped accelerator markers from the given string using the same algorithm used by MsoPwchStripWtz (bugs and all), to wit:
Strip odd chars that match
If a character matching NOTE: We do not check for language to do this i.e. we assume that there isn't any realistic label in other languages with (%accessSpecifier%N) stuck in. |
StripAccelerators(String, Object) |
Obsolete.
Returns the input string with the specified access key specifier stripped |
StripAccelerators(String) |
Obsolete.
Strips non-escaped accelerator markers ('&') from the given string using the same algorithm used by MsoPwchStripWtz (bugs and all), to wit: Strip odd '&' chars from the string. As per DrawText, consecutive pairs of '&'s will leave a real '&' character, and all odd '&'s are removed even though only the last may be underlined. If an '&' occurs inside of parens then the parens and the character following the '&' are also stripped out. This is useful to remove accelarator strings of format (&N) which are appended to label in some FE language versions. NOTE: We do not check for language to do this i.e. we assume that there isn't any realistic label in other languages with (&N) stuck in. |