Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.2
|
Leadtools.Annotations Namespace > AnnSize Structure : Explicit Type Conversion Operator |
This example converts an AnnSize structure to an AnnPoint structure.
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; }