LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

Explicit Type Conversion Operator

Example 





The AnnSize structure to be converted
Converts the specified AnnSize structure to an AnnPoint structure.
Syntax
public AnnPoint operator explicit( 
   AnnSize size
)
'Declaration
 
Public Operator Narrowing CType( _
   ByVal size As AnnSize _
) As AnnPoint
'Usage
 
public AnnPoint operator explicit( 
   AnnSize size
)
This operator type is not supported by WinRT JavaScript
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
 
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
public void AnnSize_OperatorAnnPoint()
{
   AnnSize sz = new AnnSize(1.5F, 2F, AnnUnit.Inch);
   AnnPoint pt = (AnnPoint)sz;
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnSize Structure
AnnSize Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.