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 > LogicalPoint Structure : Subtract Method |
public static LogicalPoint Subtract( LogicalPoint point, LogicalSize size )
'Declaration Public Shared Function Subtract( _ ByVal point As LogicalPoint, _ ByVal size As LogicalSize _ ) As LogicalPoint
'Usage Dim point As LogicalPoint Dim size As LogicalSize Dim value As LogicalPoint value = LogicalPoint.Subtract(point, size)
public: static LogicalPoint Subtract( LogicalPoint point, LogicalSize size )
This example subtracts the point structure by size structure (offset).
Imports Leadtools.Forms '''This example subtracts two point structures. <TestMethod> _ Public Sub LogicalPoint_Subtract() Dim sz As LogicalSize = New LogicalSize(2, 3, LogicalUnit.Centimeter) Dim pt As LogicalPoint = New LogicalPoint(1.5F, 2.0F, LogicalUnit.Inch) Dim s As String = String.Format("pt - sz = {0}", LogicalPoint.Subtract(pt, sz)) MessageBox.Show(s) End Sub
using Leadtools.Forms; ///This example subtracts two point structures. public void LogicalPoint_Subtract() { LogicalSize sz = new LogicalSize(2, 3, LogicalUnit.Centimeter); LogicalPoint pt = new LogicalPoint(1.5F, 2f, LogicalUnit.Inch); string s = string.Format("pt - sz = {0}", LogicalPoint.Subtract(pt, sz)); MessageBox.Show(s); }