ReportSize Structure

Represents a unit of length on the report.

Namespace:  Microsoft.ReportingServices.RdlObjectModel
Assembly:  Microsoft.ReportingServices.Designer.Controls (in Microsoft.ReportingServices.Designer.Controls.dll)

Syntax

'Declaration
<TypeConverterAttribute(GetType(ReportSizeConverter))> _
Public Structure ReportSize _
    Implements IComparable, IXmlSerializable, IFormattable
'Usage
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 suports the use of structures, but not the declaration of new ones.

The ReportSize type exposes the following members.

Constructors

  Name Description
Public method ReportSize(Double) Creates a new instance of the ReportSize class.
Public method ReportSize(String) Creates a new instance of the ReportSize class.
Public method ReportSize(Double, SizeTypes) Creates a new instance of the ReportSize class.
Public method ReportSize(String, IFormatProvider) Creates a new instance of the ReportSize class.
Public method ReportSize(String, IFormatProvider, SizeTypes) Creates a new instance of the ReportSize class.

Top

Properties

  Name Description
Public propertyStatic member DefaultType Gets or sets the default unit of the size.
Public propertyStatic member DotsPerInch Gets the DPI.
Public propertyStatic member Empty Gets the report size to use for an empty report size.
Public property IsEmpty Gets a value that indicates whether the report size has not been set.
Public propertyStatic member SerializedDecimalDigits Gets or sets the number of decimal places to use for serializing the report size.
Public property SerializedValue Gets the serialized report size value.
Public property Type Gets the unit of the size.
Public property Value Gets the value of the size.

Top

Methods

  Name Description
Public method Equals Returns whether two ReportSize objects have the same size. (Overrides ValueType.Equals(Object).)
Public methodStatic member FromPixels Returns a ReportSize by specifying pixels.
Public method GetHashCode Gets the unique hash code for a ReportSize. (Overrides ValueType.GetHashCode().)
Public method GetType (Inherited from Object.)
Public methodStatic member Parse Returns a ReportSize by parsing a string.
Public method SetPixels Sets the number of pixels for the size.
Public method ToCentimeters Returns the size in centimeters.
Public method ToInches Returns the size in inches.
Public method ToIntPixels Returns the size in pixels.
Public method ToMillimeters Returns the size in millimeters.
Public method ToPixels Returns the size in pixels.
Public method ToPoints Returns the size in points.
Public method ToString() Returns a string representation of the size. (Overrides ValueType.ToString().)
Public method ToString(String, IFormatProvider) Returns a string representation of the size.

Top

Operators

  Name Description
Public operatorStatic member Addition Add two sizes.
Public operatorStatic member Equality Test the equality of two sizes.
Public operatorStatic member GreaterThan Tests if the first size is greater than the second size.
Public operatorStatic member Inequality Tests the inequality of two sizes.
Public operatorStatic member LessThan Test whether the first size is less than the second size.
Public operatorStatic member Subtraction Subtract the second size from the first size.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IComparable.CompareTo Compares the object to the specified size.
Explicit interface implemetationPrivate method IXmlSerializable.GetSchema Returns the xml schema.
Explicit interface implemetationPrivate method IXmlSerializable.ReadXml Reads the xml documentation.
Explicit interface implemetationPrivate method IXmlSerializable.WriteXml Writes xml documentation.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.ReportingServices.RdlObjectModel Namespace