Leadtools.Forms Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Explicit Type Conversion Operator
See Also  Example
Leadtools.Forms Namespace > LogicalSize Structure : Explicit Type Conversion Operator


size
The LogicalSize object to be converted.
Returns a LogicalPoint containing the following LogicalSize properties: width, height, and unit in its x, y, and unit, respectively.

Syntax

Visual Basic (Declaration) 
Public Operator Narrowing CType( _
   ByVal size As LogicalSize _
) As LogicalPoint
C# 
public LogicalPoint operator explicit( 
   LogicalSize size
)
C++/CLI 
public:
LogicalPoint operator explicit( 
   LogicalSize size
)

Parameters

size
The LogicalSize object to be converted.

Example

This example compares two size structures.

Visual BasicCopy Code
Public Sub LogicalSize_OperatorLogicalPoint()
   Dim sz As LogicalSize = New LogicalSize(1.5F, 2F, LogicalUnit.Inch)
   Dim pt As LogicalPoint = CType(sz, LogicalPoint)
End Sub
C#Copy Code
public void LogicalSize_OperatorLogicalPoint() 

   LogicalSize sz = new LogicalSize(1.5F, 2F, LogicalUnit.Inch); 
   LogicalPoint pt = (LogicalPoint)sz; 
}

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features