[]
        
(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
object
LocalizedStrings
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

LocalizedStrings(IntPtr)

Initializes a new instance of the LocalizedStrings class.

public LocalizedStrings(IntPtr nativePtr)

Parameters

nativePtr System.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, 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 System.IntPtr
size 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

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, 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 System.IntPtr
size 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

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 System.IntPtr to LocalizedStrings.

public static explicit operator LocalizedStrings(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

LocalizedStrings