Stores two integer numbers that represent the coordinates of a point (X and Y).
[TypeConverterAttribute("Leadtools.LeadPointConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")]
[DataContractAttribute(Name="LeadPoint", IsNameSetExplicitly=true)]
[SerializableAttribute()]
public struct LeadPoint : System.ValueType, System.IFormattable
<TypeConverterAttribute("Leadtools.LeadPointConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")>
<DataContractAttribute(Name="LeadPoint", IsNameSetExplicitly=True)>
<SerializableAttribute()>
Public Structure LeadPoint
Inherits System.ValueType
Implements System.IFormattable
[TypeConverterAttribute("Leadtools.LeadPointConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")]
[DataContractAttribute(Name="LeadPoint", IsNameSetExplicitly=true)]
[SerializableAttribute()]
public class LeadPoint
typedef struct LeadPoint
public final class LeadPoint
JAVASCRIPT_NOSTRUCTS
[TypeConverterAttribute("Leadtools.LeadPointConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")]
[DataContractAttribute(Name="LeadPoint", IsNameSetExplicitly=true)]
[SerializableAttribute()]
public value class LeadPoint : public System.ValueType, System.IFormattable
Various parts of the LEADTOOLS toolkit require a structure that represents a point with X and Y values. Although the .NET framework contains many structures that can be used for this such as System.Drawing.Point and System.Windows.Point, they are tied to specific platforms (GDI+ and WPF/Silverlight in the previous case).
The LeadPoint structure specifies a platform-independent representation of a point. If required, you can convert a LeadPoint structure to a platform-dependent point.
To convert a GDI+ System.Drawing.Point (source) to LeadPoint, use the following code:
LeadPoint dest = new LeadPoint(source.X, source.Y)
To convert a LeadPoint (source) to GDI+ System.Drawing.Point, use the following code:
System.Drawing.Point dest = new System.Drawing.Point(source.X, source.Y)
To convert a WPF System.Windows.Point (source) to LeadPoint, use the following code:
LeadPoint dest = new LeadPoint((int)source.X, (int)source.Y)
To convert a LeadPoint (source) to WPF System.Windows.Point, use the following code:
System.Windows.Point dest = new System.Windows.Point(source.X, source.Y)
Products |
Support |
Feedback: LeadPoint Structure - Leadtools |
Introduction |
Help Version 19.0.2017.6.19
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.