LEADTOOLS Annotations (Leadtools.Annotations assembly)

Explicit Type Conversion Operator

Show in webframe
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
)

Parameters

size
The AnnSize structure to be converted

Return Value

An AnnPoint structure containing the converted AnnSize structure.
Example
Copy Code  
Imports Leadtools
Imports Leadtools.Annotations

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
using Leadtools;
using Leadtools.Annotations;

public void AnnSize_OperatorAnnPoint()
{
   AnnSize sz = new AnnSize(1.5F, 2F, AnnUnit.Inch);
   AnnPoint pt = (AnnPoint)sz;
}
Requirements

Target Platforms

See Also

Reference

AnnSize Structure
AnnSize Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.