次の方法で共有


Addition 演算子

2 つのサイズを加算します。

名前空間:  Microsoft.ReportingServices.RdlObjectModel
アセンブリ:  Microsoft.ReportingServices.Designer.Controls (Microsoft.ReportingServices.Designer.Controls.dll)

構文

'宣言
Public Shared Operator + ( _
    size1 As ReportSize, _
    size2 As ReportSize _
) As ReportSize
'使用
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
JScript はオーバーロードされた演算子の使用をサポートしていますが、新規の宣言はサポートしていません。