LEADTOOLS Forms (Leadtools.Forms assembly)

Explicit Type Conversion Operator

Show in webframe
Example 





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
public LogicalPoint operator explicit( 
   LogicalSize size
)
'Declaration
 
Public Operator Narrowing CType( _
   ByVal size As LogicalSize _
) As LogicalPoint
'Usage
 

            

            
public:
LogicalPoint operator explicit( 
   LogicalSize size
)

Parameters

size
The LogicalSize object to be converted.
Example
Copy Code  
Imports Leadtools.Forms

Public Sub LogicalSize_OperatorLogicalPoint()
   Dim sz As LogicalSize = New LogicalSize(1.5F, 2F, LogicalUnit.Inch)
   Dim pt As LogicalPoint = CType(sz, LogicalPoint)
End Sub
using Leadtools.Forms;

public void LogicalSize_OperatorLogicalPoint()
{
   LogicalSize sz = new LogicalSize(1.5F, 2F, LogicalUnit.Inch);
   LogicalPoint pt = (LogicalPoint)sz;
}
Requirements

Target Platforms

See Also

Reference

LogicalSize Structure
LogicalSize Members

 

 


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

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