Products | Support | Back to Introduction | Email a link to this topic. | Back to Introduction - All Topics | Help Version 19.0.4.12
|
Leadtools.Forms Namespace > LogicalSize Structure : Explicit Type Conversion Operator |
public LogicalPoint operator explicit( LogicalSize size )
'Declaration Public Operator Narrowing CType( _ ByVal size As LogicalSize _ ) As LogicalPoint
'Usage
public: LogicalPoint operator explicit( LogicalSize size )
This example compares two size structures.
Imports Leadtools.Forms <TestMethod> _ 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
using Leadtools.Forms; public void LogicalSize_OperatorLogicalPoint() { LogicalSize sz = new LogicalSize(1.5F, 2F, LogicalUnit.Inch); LogicalPoint pt = (LogicalPoint)sz; }