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 > AnnPoint Structure : Subtraction Operator |
'Usage
This method subtracts a size from a point.
Imports Leadtools Imports Leadtools.Annotations Public Sub AnnPoint_OperatorMinus() Dim pt As AnnPoint = New AnnPoint(200, 300, AnnUnit.Pixel) Dim sz As AnnSize = New AnnSize(1.5F, 2.0F, AnnUnit.Inch) Dim s As String = String.Format("pt - sz = {0}", pt - sz) MessageBox.Show(s) End Sub
using Leadtools; using Leadtools.Annotations; public void AnnPoint_OperatorMinus() { AnnPoint pt = new AnnPoint(200, 300, AnnUnit.Pixel); AnnSize sz = new AnnSize(1.5F, 2F, AnnUnit.Inch); string s = string.Format("pt - sz = {0}", pt - sz); MessageBox.Show(s); }