FORMATETC 结构

定义

表示通用的剪贴板格式。Represents a generalized Clipboard format.

public value class FORMATETC
public struct FORMATETC
type FORMATETC = struct
Public Structure FORMATETC
继承
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 时,公共语言运行时将引发异常。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

指定有意义的特殊剪贴板格式。Specifies the particular clipboard format of interest.

dwAspect

指定一个 DVASPECT 枚举常数,用以确定呈现中应包含多少详细信息。Specifies one of the DVASPECT enumeration constants that indicates how much detail should be contained in the rendering.

lindex

在必须跨页边界拆分数据时指定方位的部分。Specifies part of the aspect when the data must be split across page boundaries.

ptd

指定指向 DVTARGETDEVICE 结构的指针,该结构中包含有关该数据所构成的目标设备的信息。Specifies a pointer to a DVTARGETDEVICE structure containing information about the target device that the data is being composed for.

tymed

指定一个 TYMED 枚举常数,该常数指示用于传输对象数据的存储介质的类型。Specifies one of the TYMED enumeration constants, which indicates the type of storage medium used to transfer the object's data.

适用于