LEADTOOLS Forms (Leadtools.Forms assembly)
LEAD Technologies, Inc

Value Property

Example 





Gets or sets a value that represents the length for this LogicalLength.
Syntax
[LEADPropertyOrderAttribute(1)]
[DisplayNameAttribute("		Value")]
[DescriptionAttribute("Value in units")]
[CategoryAttribute("	Value")]
public double Value {get; set;}
'Declaration
 
<LEADPropertyOrderAttribute(1)>
<DisplayNameAttribute("		Value")>
<DescriptionAttribute("Value in units")>
<CategoryAttribute("	Value")>
Public Property Value As Double
'Usage
 
Dim instance As LogicalLength
Dim value As Double
 
instance.Value = value
 
value = instance.Value
[LEADPropertyOrderAttribute(1)]
[DisplayNameAttribute("		Value")]
[DescriptionAttribute("Value in units")]
[CategoryAttribute("	Value")]
public double Value {get; set;}
LEADPropertyOrderAttribute(1)
DisplayNameAttribute("		Value")
DescriptionAttribute("Value in units")
CategoryAttribute("	Value")
 get_Value();
set_Value(value);
[LEADPropertyOrderAttribute(1)]
[DisplayNameAttribute("		Value")]
[DescriptionAttribute("Value in units")]
[CategoryAttribute("	Value")]
public:
property double Value {
   double get();
   void set (    double value);
}

Property Value

Value that indicates the length.
Example
 
Public Sub LogicalLength_ConvertedValue()
   ' create a new logical length with value of 1.5 in inches
   Dim lng As LogicalLength = New LogicalLength(1.5f, LogicalUnit.Inch)
   Dim s As String
   ' show the length
   s = String.Format("Length is {0}", lng)
   MessageBox.Show(s)

   ' show the length value component converted to pixels
      s = String.Format("length is {0}, {1} Pixels", lng, LogicalUnitConverter.Convert(lng.Value, _
                                                                                      LogicalUnit.Inch, 150, _
                                                                                      LogicalUnit.Pixel, _
                                                                                      150))
   MessageBox.Show(s)
End Sub
public void LogicalLength_ConvertedValue()
{
   // create a new logical length with value of 1.5 in inches
   LogicalLength lng = new LogicalLength(1.5f, LogicalUnit.Inch);
   string s;
   // show the length
   s = string.Format("Length is {0}", lng);
   MessageBox.Show(s);

   // show the length value component converted to pixels
   s = string.Format("length is {0}, {1} Pixels", lng, LogicalUnitConverter.Convert(lng.Value, 
                                                                                     LogicalUnit.Inch, 
                                                                                     150, 
                                                                                     LogicalUnit.Pixel, 
                                                                                     150));
   MessageBox.Show(s);
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LogicalLength Structure
LogicalLength Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features