C#
VB
C++
Public Operator +( _ByVal pt As Leadtools.Annotations.AnnPoint, _ByVal sz As Leadtools.Annotations.AnnSize _) As Leadtools.Annotations.AnnPoint
public:Leadtools.Annotations.AnnPoint operator +(Leadtools.Annotations.AnnPoint pt,Leadtools.Annotations.AnnSize sz)
pt
The AnnPoint to translate.
sz
The AnnSize that specifies the pair of numbers to add to the coordinates of pt.
Returns the translated AnnPoint.
This example adds a size to a point.
using Leadtools;using Leadtools.Annotations;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);}
Imports LeadtoolsImports Leadtools.AnnotationsPublic 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
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
