Udostępnij za pośrednictwem


Operator ReportSize.Addition

Dodawanie dwóch rozmiarach.

Przestrzeń nazw:  Microsoft.ReportingServices.RdlObjectModel
Zestaw:  Microsoft.ReportingServices.Designer.Controls (w Microsoft.ReportingServices.Designer.Controls.dll)

Składnia

'Deklaracja
Public Shared Operator + ( _
    size1 As ReportSize, _
    size2 As ReportSize _
) As ReportSize
'Użycie
Dim size1 As ReportSize
Dim size2 As ReportSize
Dim returnValue As ReportSize

returnValue = (size1 + size2)
public static ReportSize operator +(
    ReportSize size1,
    ReportSize size2
)
public:
static ReportSize operator +(
    ReportSize size1, 
    ReportSize size2
)
static let inline (+)
        size1:ReportSize * 
        size2:ReportSize  : ReportSize
Język JScript obsługuje używanie przeciążonych operatorów, ale nie obsługuje deklarowania nowych.