[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.LocalizedStrings

Class LocalizedStrings

Namespace
GrapeCity.Documents.DX.DirectWrite
Assembly
GcDocs.DX.Windows.dll

IDWriteLocalizedStrings

[Guid("08256209-099a-4b34-b86d-c22b110e7771")]
public class LocalizedStrings : ComObject, IDisposable, IUnknown
Inheritance
LocalizedStrings
Implements
Inherited Members

Constructors

LocalizedStrings(IntPtr)

Initializes a new instance of the LocalizedStrings class.

public LocalizedStrings(IntPtr nativePtr)

Parameters

nativePtr IntPtr

The native pointer.

Methods

FindLocaleName(string, out int)

HRESULT IDWriteLocalizedStrings::FindLocaleName([In] const wchar_t* localeName,[Out] unsigned int* index,[Out] BOOL* exists)

public bool FindLocaleName(string localeName, out int index)

Parameters

localeName string
index int

Returns

bool

GetCount()

unsigned int IDWriteLocalizedStrings::GetCount()

public int GetCount()

Returns

int

GetLocaleName(int)

Get the locale name from the language.

public string GetLocaleName(int index)

Parameters

index int

Zero-based index of the locale name to be retrieved.

Returns

string

The locale name from the language

GetLocaleName(int, IntPtr, int)

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)

Parameters

index int
localeName IntPtr
size int

GetLocaleNameLength(int)

HRESULT IDWriteLocalizedStrings::GetLocaleNameLength([In] unsigned int index,[Out] unsigned int* length)

public int GetLocaleNameLength(int index)

Parameters

index int

Returns

int

GetString(int)

Get the string from the language/string pair.

public string GetString(int index)

Parameters

index int

Zero-based index of the string from the language/string pair to be retrieved.

Returns

string

The locale name from the language

GetString(int, IntPtr, int)

HRESULT IDWriteLocalizedStrings::GetString([In] unsigned int index,[Out, Buffer] wchar_t* stringBuffer,[In] unsigned int size)

public void GetString(int index, IntPtr stringBuffer, int size)

Parameters

index int
stringBuffer IntPtr
size int

GetStringLength(int)

HRESULT IDWriteLocalizedStrings::GetStringLength([In] unsigned int index,[Out] unsigned int* length)

public int GetStringLength(int index)

Parameters

index int

Returns

int

Operators

explicit operator LocalizedStrings(IntPtr)

Performs an explicit conversion from IntPtr to LocalizedStrings.

public static explicit operator LocalizedStrings(IntPtr nativePointer)

Parameters

nativePointer IntPtr

Returns

LocalizedStrings