Subtracts the width and height of the specified LogicalSize object from this LogicalSize structure.
public static LogicalSize operator -(
LogicalSize size1,
LogicalSize size2
)
Public Operator -( _
ByVal size1 As Leadtools.Forms.LogicalSize, _
ByVal size2 As Leadtools.Forms.LogicalSize _
) As Leadtools.Forms.LogicalSize
public:
Leadtools.Forms.LogicalSize operator -(
Leadtools.Forms.LogicalSize size1,
Leadtools.Forms.LogicalSize size2
)
size1
The first LogicalSize on the left side of the subtraction operator.
size2
The second LogicalSize on the right side of the subtraction operator.
The subtraction will be done based on size1 unit.
This example subtracts two size structures.
using Leadtools.Forms;
///This example subtracts two size structures.
public void LogicalSize_OperatorMinus()
{
LogicalSize sz1 = new LogicalSize(200, 300, LogicalUnit.Pixel);
LogicalSize sz2 = new LogicalSize(1.5F, 2f, LogicalUnit.Inch);
string s = string.Format("sz1 - sz2 = {0}", sz1 - sz2);
MessageBox.Show(s);
}
Imports Leadtools.Forms
'''This example subtracts two size structures.
Public Sub LogicalSize_OperatorMinus()
Dim sz1 As LogicalSize = New LogicalSize(200, 300, LogicalUnit.Pixel)
Dim sz2 As LogicalSize = New LogicalSize(1.5F, 2.0F, LogicalUnit.Inch)
Dim s As String = String.Format("sz1 - sz2 = {0}", sz1 - sz2)
MessageBox.Show(s)
End Sub
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.