LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
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 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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