IDWriteTextAnalysisSource::GetNumberSubstitution Method
Gets the number substitution from the text range affected by the text analysis.
Syntax
virtual HRESULT GetNumberSubstitution(
UINT32 textPosition,
[out] UINT32 *textLength,
[out] IDWriteNumberSubstitution **numberSubstitution
) = 0;
Parameter
textPosition
The starting position from which to report.textLength [out]
Contains the length of the text, in characters, remaining in the text range up to the next differing number substitution.numberSubstitution [out]
Contains an address of a pointer to an object, which was created with IDWriteFactory::CreateNumberSubstitution, that holds the appropriate digits and numeric punctuation for a given locale.
Rückgabewert
Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.
Hinweise
Any implementation should return the number substitution with an incremented reference count, and the analysis will release when finished with it (either before the next call or before it returns). However, the sink callback may hold onto it after that.
Anforderungen
Mindestens unterstützter Client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista |
Mindestens unterstützter Server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 |
Header |
Dwrite.h |
Bibliothek |
Dwrite.lib |
DLL |
Dwrite.dll |