.NET Framework クラス ライブラリ
PrivateFontCollection..::.AddMemoryFont メソッド

更新 : 2007 年 11 月

システム メモリに格納されているフォントを、この PrivateFontCollection に追加します。

名前空間 :  System.Drawing.Text
アセンブリ :  System.Drawing (System.Drawing.dll 内)

構文

Visual Basic (宣言)
Public Sub AddMemoryFont ( _
    memory As IntPtr, _
    length As Integer _
)
Visual Basic (使用法)
Dim instance As PrivateFontCollection
Dim memory As IntPtr
Dim length As Integer

instance.AddMemoryFont(memory, length)
C#
public void AddMemoryFont(
    IntPtr memory,
    int length
)
Visual C++
public:
void AddMemoryFont(
    IntPtr memory, 
    int length
)
J#
public void AddMemoryFont(
    IntPtr memory,
    int length
)
JScript
public function AddMemoryFont(
    memory : IntPtr, 
    length : int
)

パラメータ

memory
型 : System..::.IntPtr

追加するフォントのメモリ アドレス。

length
型 : System..::.Int32

追加するフォントのメモリ長。

解説

メモリ フォントを使用するには、コントロール上のテキストを GDI+ で描画する必要があります。SetCompatibleTextRenderingDefault メソッドを使用し、true を渡して、GDI+ の描画をアプリケーションに対して設定するか、コントロールの UseCompatibleTextRendering プロパティを true に設定して個々のコントロールに設定します。GDI+ では描画できないコントロールもあります。

プラットフォーム

Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.5、3.0、2.0、1.1、1.0
参照

参照

タグ :


Page view tracker