[]
IDWriteLocalizedStrings
[Guid("08256209-099a-4b34-b86d-c22b110e7771")]
public class LocalizedStrings : ComObject, IDisposable, IUnknown
Initializes a new instance of the LocalizedStrings class.
public LocalizedStrings(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
HRESULT IDWriteLocalizedStrings::FindLocaleName([In] const wchar_t* localeName,[Out] unsigned int* index,[Out] BOOL* exists)
public bool FindLocaleName(string localeName, out int index)
localeName
stringindex
intunsigned int IDWriteLocalizedStrings::GetCount()
public int GetCount()
HRESULT IDWriteLocalizedStrings::GetLocaleName([In] unsigned int index,[Out, Buffer] wchar_t* localeName,[In] unsigned int size)
public void GetLocaleName(int index, IntPtr localeName, int size)
index
intlocaleName
System.IntPtrsize
intGet the locale name from the language.
public string GetLocaleName(int index)
index
intZero-based index of the locale name to be retrieved.
The locale name from the language
HRESULT IDWriteLocalizedStrings::GetLocaleNameLength([In] unsigned int index,[Out] unsigned int* length)
public int GetLocaleNameLength(int index)
index
intHRESULT IDWriteLocalizedStrings::GetString([In] unsigned int index,[Out, Buffer] wchar_t* stringBuffer,[In] unsigned int size)
public void GetString(int index, IntPtr stringBuffer, int size)
index
intstringBuffer
System.IntPtrsize
intGet the string from the language/string pair.
public string GetString(int index)
index
intZero-based index of the string from the language/string pair to be retrieved.
The locale name from the language
HRESULT IDWriteLocalizedStrings::GetStringLength([In] unsigned int index,[Out] unsigned int* length)
public int GetStringLength(int index)
index
intPerforms an explicit conversion from System.IntPtr to LocalizedStrings.
public static explicit operator LocalizedStrings(IntPtr nativePointer)
nativePointer
System.IntPtr