Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
Addition Operator
See Also  Example
Leadtools.Annotations Namespace > AnnPoint Structure : Addition Operator



pt
The AnnPoint to translate.
sz
The AnnSize that specifies the pair of numbers to add to the coordinates of pt.
Translates an AnnPoint by a given AnnSize.

Syntax

Visual Basic (Declaration) 
Public Operator +( _
   ByVal pt As AnnPoint, _
   ByVal sz As AnnSize _
) As AnnPoint
C# 
public AnnPoint operator +( 
   AnnPoint pt,
   AnnSize sz
)
Managed Extensions for C++ 
public: AnnPoint op_Addition( 
   AnnPoint pt,
   AnnSize sz
)
C++/CLI 
public:
AnnPoint operator +( 
   AnnPoint pt,
   AnnSize sz
)

Parameters

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

Return Value

Returns the translated AnnPoint.

Example

This example adds a size to a point.

Visual BasicCopy Code
Public Sub AnnPoint_OperatorPlus()
   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
C#Copy Code
public void AnnPoint_OperatorPlus() 

   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: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features