FORMATETC FORMATETC FORMATETC FORMATETC Struct

定義

表示通用的剪貼簿格式。Represents a generalized Clipboard format.

public value class FORMATETC
public struct FORMATETC
type FORMATETC = struct
Public Structure FORMATETC
繼承

備註

FORMATETC結構包含目標裝置、資料的外觀或觀點, 以及儲存媒體指標。The FORMATETC structure encompass a target device, the aspect or view of the data, and a storage medium indicator. OLE 改為使用 FORMATETC 資料結構, 而不是剪貼簿格式。Instead of a Clipboard format, OLE uses a FORMATETC data structure instead. 在需要資料格式資訊的 OLE 函數和方法中, 此結構會當做參數使用。This structure is used as a parameter in OLE functions and methods that require data format information.

如需FORMATETC結構的詳細資訊, 請參閱 MSDN Library。For more information about the FORMATETC structure, see the MSDN Library.

當原生程式碼中的 COM 方法傳回 HRESULT 時, common language runtime 會擲回例外狀況。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 如需詳細資訊,請參閱 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

欄位

cfFormat cfFormat cfFormat cfFormat

指定相關的特定剪貼簿格式。Specifies the particular clipboard format of interest.

dwAspect dwAspect dwAspect dwAspect

指定其中一個 DVASPECT 列舉常數,指出呈現時應該包含多少細節。Specifies one of the DVASPECT enumeration constants that indicates how much detail should be contained in the rendering.

lindex lindex lindex lindex

指定必須跨頁面界限分割資料時的外觀部分。Specifies part of the aspect when the data must be split across page boundaries.

ptd ptd ptd ptd

指定 DVTARGETDEVICE 結構的指標,結構中包含撰寫資料的目標裝置相關資訊。Specifies a pointer to a DVTARGETDEVICE structure containing information about the target device that the data is being composed for.

tymed tymed tymed tymed

指定其中一個 TYMED 列舉常數,表示用來傳輸物件資料的存放媒體類型。Specifies one of the TYMED enumeration constants, which indicates the type of storage medium used to transfer the object's data.

適用於