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