Partager via


Structure ReportSize

Represents a unit of length on the report.

Espace de noms :  Microsoft.ReportingServices.RdlObjectModel
Assembly :  Microsoft.ReportingServices.Designer.Controls (en Microsoft.ReportingServices.Designer.Controls.dll)

Syntaxe

'Déclaration
<TypeConverterAttribute(GetType(ReportSizeConverter))> _
Public Structure ReportSize _
    Implements IComparable, IXmlSerializable, IFormattable
'Utilisation
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 prend en charge l'utilisation de structures, mais pas la déclaration de nouvelles structures.

Le type ReportSize expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique ReportSize(Double) Creates a new instance of the ReportSize class.
Méthode publique ReportSize(String) Creates a new instance of the ReportSize class.
Méthode publique ReportSize(Double, SizeTypes) Creates a new instance of the ReportSize class.
Méthode publique ReportSize(String, IFormatProvider) Creates a new instance of the ReportSize class.
Méthode publique ReportSize(String, IFormatProvider, SizeTypes) Creates a new instance of the ReportSize class.

Haut de la page

Propriétés

  Nom Description
Propriété publiqueMembre statique DefaultType The default unit of the size.
Propriété publiqueMembre statique DotsPerInch DPI.
Propriété publiqueMembre statique Empty The report size to use for an empty report size.
Propriété publique IsEmpty Indicates whether the report size has not been set.
Propriété publiqueMembre statique SerializedDecimalDigits The number of decimal places to use for serializing the report size.
Propriété publique SerializedValue The serialized report size value.
Propriété publique Type The unit of the size.
Propriété publique Value The value of the size.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals Returns whether two ReportSize objects have the same size. (remplace ValueType. . :: . .Equals(Object).)
Méthode protégée Finalize (hérité de Object.)
Méthode publiqueMembre statique FromPixels Return a ReportSize by specifying pixels.
Méthode publique GetHashCode Gets the unique hash code for a ReportSize. (remplace ValueType. . :: . .GetHashCode() () () ().)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publiqueMembre statique Parse Returns a ReportSize by parsing a string.
Méthode publique SetPixels Sets the number of pixels for the size.
Méthode publique ToCentimeters Returns the size in centimeters.
Méthode publique ToInches Returns the size in inches.
Méthode publique ToIntPixels Returns the size in pixels.
Méthode publique ToMillimeters Returns the size in millimeters.
Méthode publique ToPixels Returns the size in pixels.
Méthode publique ToPoints Returns the size in points.
Méthode publique ToString() () () () Returns a string representation of the size. (remplace ValueType. . :: . .ToString() () () ().)
Méthode publique ToString(String, IFormatProvider) Returns a string representation of the size.

Haut de la page

Opérateurs

  Nom Description
Opérateur publicMembre statique Addition Add two sizes.
Opérateur publicMembre statique Equality Test the equality of two sizes.
Opérateur publicMembre statique GreaterThan Tests if the first size is greater than the second size.
Opérateur publicMembre statique Inequality Tests the inequality of two sizes.
Opérateur publicMembre statique LessThan Test whether the first size is less than the second size.
Opérateur publicMembre statique Subtraction Subtract the second size from the first size.

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.