共用方式為


ReportSize Struct

Definition

Represents a unit of length on the report.

public value class ReportSize : IComparable, IFormattable, System::Xml::Serialization::IXmlSerializable
[System.ComponentModel.TypeConverter(typeof(Microsoft.ReportingServices.RdlObjectModel.ReportSizeConverter))]
public struct ReportSize : IComparable, IFormattable, System.Xml.Serialization.IXmlSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.ReportingServices.RdlObjectModel.ReportSizeConverter))>]
type ReportSize = struct
    interface IXmlSerializable
    interface IFormattable
Public Structure ReportSize
Implements IComparable, IFormattable, IXmlSerializable
Inheritance
ReportSize
Attributes
Implements

Constructors

ReportSize(Double, SizeTypes)

Creates a new instance of the ReportSize class.

ReportSize(Double)

Creates a new instance of the ReportSize class.

ReportSize(String, IFormatProvider, SizeTypes)

Creates a new instance of the ReportSize class.

ReportSize(String, IFormatProvider)

Creates a new instance of the ReportSize class.

ReportSize(String)

Creates a new instance of the ReportSize class.

Properties

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.

Methods

Equals(Object)

Returns whether two ReportSize objects have the same size.

FromPixels(Double, SizeTypes)

Returns a ReportSize by specifying pixels.

GetHashCode()

Gets the unique hash code for a ReportSize.

Parse(String, IFormatProvider)

Returns a ReportSize by parsing a string.

SetPixels(Double)

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.

ToString(String, IFormatProvider)

Returns a string representation of the size.

Operators

Addition(ReportSize, ReportSize)

Add two sizes.

Equality(ReportSize, ReportSize)

Test the equality of two sizes.

GreaterThan(ReportSize, ReportSize)

Tests if the first size is greater than the second size.

Inequality(ReportSize, ReportSize)

Tests the inequality of two sizes.

LessThan(ReportSize, ReportSize)

Test whether the first size is less than the second size.

Subtraction(ReportSize, ReportSize)

Subtract the second size from the first size.

Explicit Interface Implementations

IComparable.CompareTo(Object)

Compares the object to the specified size.

IXmlSerializable.GetSchema()

Returns the xml schema.

IXmlSerializable.ReadXml(XmlReader)

Reads the xml documentation.

IXmlSerializable.WriteXml(XmlWriter)

Writes xml documentation.

Applies to