Stores four integer numbers that represent the coordinates and size of a rectangle (X, Y, Width, and Height).
[TypeConverterAttribute("Leadtools.LeadRectConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")]
[DataContractAttribute(Name="LeadRect", IsNameSetExplicitly=true)]
[SerializableAttribute()]
public struct LeadRect : System.ValueType, System.IFormattable
<TypeConverterAttribute("Leadtools.LeadRectConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")>
<DataContractAttribute(Name="LeadRect", IsNameSetExplicitly=True)>
<SerializableAttribute()>
Public Structure LeadRect
Inherits System.ValueType
Implements System.IFormattable
[TypeConverterAttribute("Leadtools.LeadRectConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")]
[DataContractAttribute(Name="LeadRect", IsNameSetExplicitly=true)]
[SerializableAttribute()]
public class LeadRect
typedef struct LeadRect
public final class LeadRect
JAVASCRIPT_NOSTRUCTS
[TypeConverterAttribute("Leadtools.LeadRectConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")]
[DataContractAttribute(Name="LeadRect", IsNameSetExplicitly=true)]
[SerializableAttribute()]
public value class LeadRect : public System.ValueType, System.IFormattable
Various parts of the LEADTOOLS toolkit require a structure that represents a rectangle with location and size values. Although the .NET framework contains many structures that can be used for this such as System.Drawing.Rectangle and System.Windows.Rect they are tied to a specific platform (GDI+ and WPF/Silverlight in the previous case).
The LeadRect structure specifies a platform independent representation of a rectangle. If required, you can convert LeadRect to a platform independent rectangle.
To convert a GDI+ System.Drawing.Rectangle (source) to LeadRect, use the following code:
LeadRect dest = new LeadRect(source.X, source.Y, source.Width, source.Height)
To convert a LeadRect (source) to GDI+ System.Drawing.Rectangle, use the following code:
System.Drawing.Rectangle dest = new System.Drawing.Rectangle(source.X, source.Y, source.Width, source.Height)
To convert a WPF System.Windows.Rect (source) to LeadRect, use the following code:
LeadRect dest = new LeadRect((int)source.X, (int)source.Y, (int)source.Width, (int)source.Height)
To convert a LeadRect (source) to WPF System.Windows.Rect, use the following code:
System.Windows.Rect dest = new System.Windows.Rect(source.X, source.Y, source.Width, source.Height)
Products |
Support |
Feedback: LeadRect 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.