共用方式為


Subtraction 運算子

Subtract the second size from the first size.

命名空間:  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 支援多載運算子的使用,但不支援新運算子的宣告。