DVASPECT 枚举

定义

在绘制或获取数据时,指定所需对象数据或对象视图方位。Specifies the desired data or view aspect of the object when drawing or getting data.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class DVASPECT
[System.Flags]
public enum DVASPECT
type DVASPECT = 
Public Enum DVASPECT
继承
DVASPECT
属性

字段

DVASPECT_CONTENT 1

对象的表示形式,它使该对象在容器内显示为嵌入的对象。A representation of an object that lets that object be displayed as an embedded object inside a container. 通常为复合文档对象指定此值。This value is typically specified for compound document objects. 该演示可提供给屏幕或打印机。The presentation can be provided for the screen or printer.

DVASPECT_DOCPRINT 8

对象在屏幕上的表示形式,与使用“文件”菜单上的“打印”命令在打印机上打印出的效果相同 。A representation of an object on the screen as though it were printed to a printer using the Print command from the File menu. 该描述数据可以表示页序列。The described data may represent a sequence of pages.

DVASPECT_ICON 4

对象的图标表示形式。An iconic representation of an object.

DVASPECT_THUMBNAIL 2

对象的缩略图表示形式,使对象可在浏览工具中显示。A thumbnail representation of an object that lets that object be displayed in a browsing tool. 该缩略图大约为 120 x 120 像素、16 色(推荐)、独立于设备的位图,该位图可能包含在图元文件中。The thumbnail is approximately a 120 by 120 pixel, 16-color (recommended), device-independent bitmap potentially wrapped in a metafile.

注解

有关DVASPECT的详细信息, 请参阅 MSDN library。For more information about DVASPECT, 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.

适用于