Represents a unit of length on the report.
命名空间: Microsoft.ReportingServices.RdlObjectModel
程序集: Microsoft.ReportingServices.Designer.Controls(在 Microsoft.ReportingServices.Designer.Controls.dll 中)
语法
声明
<TypeConverterAttribute(GetType(ReportSizeConverter))> _
Public Structure ReportSize _
Implements IComparable, IXmlSerializable, IFormattable
用法
Dim instance As ReportSize
[TypeConverterAttribute(typeof(ReportSizeConverter))]
public struct ReportSize : IComparable,
IXmlSerializable, IFormattable
[TypeConverterAttribute(typeof(ReportSizeConverter))]
public value class ReportSize : IComparable,
IXmlSerializable, IFormattable
[<SealedAttribute>]
[<TypeConverterAttribute(typeof(ReportSizeConverter))>]
type ReportSize =
struct
interface IComparable
interface IXmlSerializable
interface IFormattable
end
JScript 支持使用结构,但不支持声明新结构。
ReportSize 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ReportSize(Double) | Creates a new instance of the ReportSize class. |
![]() |
ReportSize(String) | Creates a new instance of the ReportSize class. |
![]() |
ReportSize(Double, SizeTypes) | Creates a new instance of the ReportSize class. |
![]() |
ReportSize(String, IFormatProvider) | Creates a new instance of the ReportSize class. |
![]() |
ReportSize(String, IFormatProvider, SizeTypes) | Creates a new instance of the ReportSize class. |
页首
属性
名称 | 说明 | |
---|---|---|
![]() ![]() |
DefaultType | Gets or sets the default unit of the size. |
![]() ![]() |
DotsPerInch | Gets the DPI. |
![]() ![]() |
Empty | Gets the report size to use for an empty report size. |
![]() |
IsEmpty | Gets a value that indicates whether the report size has not been set. |
![]() ![]() |
SerializedDecimalDigits | Gets or sets the number of decimal places to use for serializing the report size. |
![]() |
SerializedValue | Gets the serialized report size value. |
![]() |
Type | Gets the unit of the size. |
![]() |
Value | Gets the value of the size. |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | Returns whether two ReportSize objects have the same size. (覆盖 ValueType.Equals(Object)。) |
![]() ![]() |
FromPixels | Returns a ReportSize by specifying pixels. |
![]() |
GetHashCode | Gets the unique hash code for a ReportSize. (覆盖 ValueType.GetHashCode()。) |
![]() |
GetType | (从 Object 继承。) |
![]() ![]() |
Parse | Returns a ReportSize by parsing a string. |
![]() |
SetPixels | Sets the number of pixels for the size. |
![]() |
ToCentimeters | Returns the size in centimeters. |
![]() |
ToInches | Returns the size in inches. |
![]() |
ToIntPixels | Returns the size in pixels. |
![]() |
ToMillimeters | Returns the size in millimeters. |
![]() |
ToPixels | Returns the size in pixels. |
![]() |
ToPoints | Returns the size in points. |
![]() |
ToString() | Returns a string representation of the size. (覆盖 ValueType.ToString()。) |
![]() |
ToString(String, IFormatProvider) | Returns a string representation of the size. |
页首
运算符
名称 | 说明 | |
---|---|---|
![]() ![]() |
Addition | Add two sizes. |
![]() ![]() |
Equality | Test the equality of two sizes. |
![]() ![]() |
GreaterThan | Tests if the first size is greater than the second size. |
![]() ![]() |
Inequality | Tests the inequality of two sizes. |
![]() ![]() |
LessThan | Test whether the first size is less than the second size. |
![]() ![]() |
Subtraction | Subtract the second size from the first size. |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
IComparable.CompareTo | Compares the object to the specified size. |
![]() ![]() |
IXmlSerializable.GetSchema | Returns the xml schema. |
![]() ![]() |
IXmlSerializable.ReadXml | Reads the xml documentation. |
![]() ![]() |
IXmlSerializable.WriteXml | Writes xml documentation. |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。