←Select platform

Explicit Operator

Summary

Returns a LogicalPoint containing the following LogicalSize properties: width, height, and unit in its x, y, and unit, respectively.

Syntax

C#
VB
C++
public static LogicalPoint operator explicit( 
   LogicalSize size 
) 
  
Public Operator Narrowing CType( _ 
   ByVal size As Leadtools.Forms.LogicalSize _ 
) As Leadtools.Forms.LogicalPoint 

Parameters

size
The LogicalSize object to be converted.

Example

This example compares two size structures.

C#
VB
using Leadtools.Forms; 
 
public void LogicalSize_OperatorLogicalPoint() 
{ 
   LogicalSize sz = new LogicalSize(1.5F, 2F, LogicalUnit.Inch); 
   LogicalPoint pt = (LogicalPoint)sz; 
} 
Imports Leadtools.Forms 
 
Public Sub LogicalSize_OperatorLogicalPoint() 
   Dim sz As LogicalSize = New LogicalSize(1.5F, 2.0F, LogicalUnit.Inch) 
   Dim pt As LogicalPoint = CType(sz, LogicalPoint) 
End Sub 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms Assembly