共用方式為


IVsPersistentTextImage.Image_LoadText(String, Int32, UInt32) Method

Definition

Loads the specified text image.

public:
 int Image_LoadText(System::String ^ pszText, int iLength, System::UInt32 dwFlags);
public:
 int Image_LoadText(Platform::String ^ pszText, int iLength, unsigned int dwFlags);
int Image_LoadText(std::wstring const & pszText, int iLength, unsigned int dwFlags);
public int Image_LoadText (string pszText, int iLength, uint dwFlags);
abstract member Image_LoadText : string * int * uint32 -> int
Public Function Image_LoadText (pszText As String, iLength As Integer, dwFlags As UInteger) As Integer

Parameters

pszText
String

[in] The text image.

iLength
Int32

[in] The length of the text image.

dwFlags
UInt32

[in] Flags indicating options.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsPersistentTextImage::Image_LoadText(  
   [in] const WCHAR *pszText,  
   [in] INT iLength,  
   [in] DWORD dwFlags  
);  

Applies to