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



size
The AnnSize structure to be converted
Converts the specified AnnSize structure to an AnnPoint structure.

Syntax

Visual Basic (Declaration) 
Public Operator Narrowing CType( _
   ByVal size As AnnSize _
) As AnnPoint
C# 
public AnnPoint operator explicit( 
   AnnSize size
)
Managed Extensions for C++ 
public: AnnPoint op_Explicit( 
   AnnSize size
)
C++/CLI 
public:
AnnPoint operator explicit( 
   AnnSize size
)

Parameters

size
The AnnSize structure to be converted

Return Value

An AnnPoint structure containing the converted AnnSize structure.

Example

This example converts an AnnSize structure to an AnnPoint structure.

Visual BasicCopy Code
Public Sub AnnSize_OperatorAnnPoint()
   Dim sz As AnnSize = New AnnSize(1.5F, 2.0F, AnnUnit.Inch)
   Dim pt As AnnPoint = CType(sz, AnnPoint)
End Sub
C#Copy Code
public void AnnSize_OperatorAnnPoint() 

   AnnSize sz = new AnnSize(1.5F, 2F, AnnUnit.Inch); 
   AnnPoint pt = (AnnPoint)sz; 
}

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