LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

Subtraction Operator (AnnPoint)

Example 





The AnnPoint to translate.
The AnnSize that specifies the pair of numbers to subtract from the coordinates of pt.
Translates an AnnPoint by the negative of a given AnnSize.
Syntax
public AnnPoint operator -( 
   AnnPoint pt,
   AnnSize sz
)
'Declaration
 
Public Operator -( _
   ByVal pt As AnnPoint, _
   ByVal sz As AnnSize _
) As AnnPoint
'Usage
 
public AnnPoint operator -( 
   AnnPoint pt,
   AnnSize sz
)
This operator type is not supported by WinRT JavaScript
public:
AnnPoint operator -( 
   AnnPoint pt,
   AnnSize sz
)

Parameters

pt
The AnnPoint to translate.
sz
The AnnSize that specifies the pair of numbers to subtract from the coordinates of pt.

Return Value

Returns the translated AnnPoint.
Example
 
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
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);
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnPoint Structure
AnnPoint Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.