Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Creates a number substitution object using a locale name, substitution method, and an indicator whether to ignore user overrides (use NLS defaults for the given culture instead).
Syntax
HRESULT CreateNumberSubstitution(
[in] DWRITE_NUMBER_SUBSTITUTION_METHOD substitutionMethod,
[in] WCHAR const *localeName,
[in] BOOL ignoreUserOverride,
[out] IDWriteNumberSubstitution **numberSubstitution
);
Parameters
[in] substitutionMethod
Type: DWRITE_NUMBER_SUBSTITUTION_METHOD
A value that specifies how to apply number substitution on digits and related punctuation.
[in] localeName
Type: const WCHAR*
The name of the locale to be used in the numberSubstitution object.
[in] ignoreUserOverride
Type: BOOL
A Boolean flag that indicates whether to ignore user overrides.
[out] numberSubstitution
Type: IDWriteNumberSubstitution**
When this method returns, contains an address to a pointer to the number substitution object created by this method.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
| Target Platform | Windows |
| Header | dwrite.h |
| Library | Dwrite.lib |
| DLL | Dwrite.dll |