Error processing SSI file
LEADTOOLS Annotations (Leadtools.Annotations assembly)

Show in webframe

Explicit Type Conversion Operator






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

This example converts an AnnSize structure to an AnnPoint structure.

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

Error processing SSI file
(Deprecated, use Leadtools.Annotations.Core instead)