[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.LocalFontFileLoader

Class LocalFontFileLoader

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

IDWriteLocalFontFileLoader

[Guid("b2d9f3ec-c9fe-4a11-a2ec-d86208f7c0a2")]
public class LocalFontFileLoader : FontFileLoaderNative, IUnknown, IFontFileLoader, ICallbackable, IDisposable
Inheritance
object
LocalFontFileLoader
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

LocalFontFileLoader(IntPtr)

Initializes a new instance of the LocalFontFileLoader class.

public LocalFontFileLoader(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

GetFilePath(DataPointer)

Obtains the absolute font file path from the font file reference key.

public string GetFilePath(DataPointer referenceKey)

Parameters

referenceKey DataPointer

The font file reference key that uniquely identifies the local font file within the scope of the font loader being used.

Returns

string

If this method succeeds, the absolute font file path from the font file reference key.

GetFilePathFromKey(IntPtr, int, IntPtr, int)

HRESULT IDWriteLocalFontFileLoader::GetFilePathFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out, Buffer] wchar_t* filePath,[In] unsigned int filePathSize)

public void GetFilePathFromKey(IntPtr fontFileReferenceKey, int fontFileReferenceKeySize, IntPtr filePath, int filePathSize)

Parameters

fontFileReferenceKey System.IntPtr
fontFileReferenceKeySize int
filePath System.IntPtr
filePathSize int

GetFilePathLengthFromKey(IntPtr, int)

HRESULT IDWriteLocalFontFileLoader::GetFilePathLengthFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out] unsigned int* filePathLength)

public int GetFilePathLengthFromKey(IntPtr fontFileReferenceKey, int fontFileReferenceKeySize)

Parameters

fontFileReferenceKey System.IntPtr
fontFileReferenceKeySize int

Returns

int

GetLastWriteTime(DataPointer)

Obtains the last write time of the file from the font file reference key.

public DateTime GetLastWriteTime(DataPointer referenceKey)

Parameters

referenceKey DataPointer

The font file reference key that uniquely identifies the local font file within the scope of the font loader being used.

Returns

System.DateTime

The time of the last font file modification.

GetLastWriteTimeFromKey(IntPtr, int)

HRESULT IDWriteLocalFontFileLoader::GetLastWriteTimeFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out] FILETIME* lastWriteTime)

public long GetLastWriteTimeFromKey(IntPtr fontFileReferenceKey, int fontFileReferenceKeySize)

Parameters

fontFileReferenceKey System.IntPtr
fontFileReferenceKeySize int

Returns

long

Operators

explicit operator LocalFontFileLoader(IntPtr)

Performs an explicit conversion from System.IntPtr to LocalFontFileLoader.

public static explicit operator LocalFontFileLoader(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

LocalFontFileLoader