Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.2
|
Leadtools.Annotations Namespace > AnnLength Structure : Subtraction Operator |
'Usage
This method subtracts one length from another.
Imports Leadtools Imports Leadtools.Annotations Imports Leadtools.Codecs Imports Leadtools.WinForms Public Sub AnnLength_OperatorMinus() Dim ln1 As AnnLength = New AnnLength(2.0F, AnnUnit.Inch) Dim ln2 As AnnLength = New AnnLength(1.5F, AnnUnit.Inch) Dim s As String = String.Format("ln1 - ln2 = {0}", ln1 - ln2) MessageBox.Show(s) End Sub
using Leadtools; using Leadtools.Annotations; using Leadtools.Codecs; using Leadtools.WinForms; public void AnnLength_OperatorMinus() { AnnLength ln1 = new AnnLength(2.0F, AnnUnit.Inch); AnnLength ln2 = new AnnLength(1.5F, AnnUnit.Inch); string s = string.Format("ln1 - ln2 = {0}", ln1 - ln2); MessageBox.Show(s); }