Поделиться через


Структура ReportSize

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.

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.ReportingServices.RdlObjectModel