Parameters
- size
- The AnnSize structure to be converted
Return Value
An AnnPoint structure containing the converted AnnSize structure.This example converts an AnnSize structure to an AnnPoint structure.
| Visual Basic | Copy 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; } | |
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7