ITextStoreACP::GetFormattedText 方法 (textstor.h)

ITextStoreACP::GetFormattedText 方法會傳回有關指定文字字串的格式化文字數據。 呼叫端必須在檔上具有讀取/寫入鎖定,才能呼叫這個方法。

語法

HRESULT GetFormattedText(
  [in]  LONG        acpStart,
  [in]  LONG        acpEnd,
  [out] IDataObject **ppDataObject
);

參數

[in] acpStart

指定要在檔案中取得之文字的起始字元位置。

[in] acpEnd

指定要在檔案中取得之文字的結束字元位置。 如果值為 1,則會忽略此參數。

[out] ppDataObject

接收包含格式化文字之 IDataObject 物件的指標。

傳回值

這個方法可以傳回其中一個值。

描述
S_OK
此方法成功。
TS_E_NOLOCK
呼叫端在文件上沒有讀取/寫入鎖定。

規格需求

需求
最低支援的用戶端 Windows 2000 專業版 [僅限傳統型應用程式]
最低支援的伺服器 Windows 2000 Server [僅限傳統型應用程式]
目標平台 Windows
標頭 textstor.h
Dll Msctf.dll
可轉散發套件 Windows 2000 專業版上的 TSF 1.0