Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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
)
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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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