PageResolution 类

定义

将打印输出的页面分辨率定义为定性值和/或每英寸点数。Defines the page resolution of printed output as either a qualitative value or as dots per inch, or both.

public ref class PageResolution sealed
public sealed class PageResolution
type PageResolution = class
Public NotInheritable Class PageResolution
继承
PageResolution

注解

注意

System.Printing命名空间中的类不支持在 Windows 服务或 ASP.NET 应用程序或服务中使用。Classes within the System.Printing namespace are not supported for use within a Windows service or ASP.NET application or service. 尝试从这些应用程序类型之一中使用这些类可能会产生意外的问题, 例如降低服务性能和运行时异常。Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.

如果要从 Windows 窗体应用程序进行打印, 请参阅System.Drawing.Printing命名空间。If you want to print from a Windows Forms application, see the System.Drawing.Printing namespace.

构造函数

PageResolution(Int32, Int32)

初始化具有指定垂直和水平每英寸点数的 PageResolution 类的一个新实例。Initiates a new instance of the PageResolution class that has the specified vertical and horizontal dots per inch.

PageResolution(Int32, Int32, PageQualitativeResolution)

初始化具有指定 PageResolution 和指定垂直与水平每英寸点数的 PageQualitativeResolution 类的一个新实例。Initiates a new instance of the PageResolution class that has the specified PageQualitativeResolution and the specified vertical and horizontal dots per inch.

PageResolution(PageQualitativeResolution)

初始化具有指定 PageResolutionPageQualitativeResolution 类的一个新实例。Initiates a new instance of the PageResolution class that has the specified PageQualitativeResolution.

属性

QualitativeResolution

获取页面分辨率的定性表达式(如果有)。Gets the qualitative expression, if any, of the page resolution.

X

获取页面水平分辨率的每英寸点数。Gets the dots-per-inch measure of the horizontal page resolution.

Y

获取页面垂直分辨率的每英寸点数。Gets the dots-per-inch measure of the vertical page resolution.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

String 的形式返回页面分辨率。Returns the page resolution as a String.

适用于

另请参阅