Share via


Font.PreloadText Method

Loads formatted text into video memory to improve the efficiency of rendering to a device.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Sub PreloadText ( _
    value As String _
)
'Usage
Dim instance As Font
Dim value As String

instance.PreloadText(value)
public void PreloadText (
    string value
)
public:
void PreloadText (
    String^ value
)
public void PreloadText (
    String value
)
public function PreloadText (
    value : String
)

Parameters

  • value
    The string of characters to load into video memory.

Exceptions

Exception type Condition

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

Remarks

This method does not render text to the device; the DrawText method must still be called to render the text. However, preloading text into video memory causes DrawText to use substantially fewer CPU resources.

.NET Framework Security

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Font Class
Font Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace