Returns a
LogicalPoint that results
from adding the width and height of
LogicalSize
structure to the X and Y coordinants of the
LogicalPoint structure, respectively.
Syntax
Example
This example adds the size structure to point structure (offset).
Visual Basic | Copy Code |
---|
Public Sub LogicalPoint_Add()
Dim sz As LogicalSize = New LogicalSize(2, 3, LogicalUnit.Centimeter)
Dim pt As LogicalPoint = New LogicalPoint(1.5F, 2f, LogicalUnit.Inch)
Dim s As String = String.Format("pt + sz = {0}", LogicalPoint.Add(pt, sz))
MessageBox.Show(s)
End Sub
|
C# | Copy Code |
---|
///This example adds two point structures. public void LogicalPoint_Add() { 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.Add(pt, sz)); MessageBox.Show(s); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also