Returns a
LogicalPoint containing the following
LogicalSize properties: width, height, and unit
in its x, y, and unit, respectively.
Syntax
Example
This example compares two size structures.
Visual Basic | Copy 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