LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)
LEAD Technologies, Inc

ResetImageViewOptions Enumeration






Options to control which display properties gets reset when a new image is set into the control. .NET support Silverlight support
Syntax
'Declaration
 
<FlagsAttribute()>
Public Enum ResetImageViewOptions 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As ResetImageViewOptions
[FlagsAttribute()]
public enum ResetImageViewOptions : System.IComparableSystem.IConvertibleSystem.IFormattable  
Leadtools.Windows.Controls.ResetImageViewOptions = function() { };
Leadtools.Windows.Controls.ResetImageViewOptions.prototype = {
LeadtoolsMemberMarker(replace me) };
[FlagsAttribute()]
public enum class ResetImageViewOptions : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
MemberDescription
All

All the above properties will reset back to their default values.

AspectRatioCorrection

The ImageBox.AspectRatioCorrection or ImageViewer.AspectRatioCorrection properties will reset back to 1.0.

Flip

The ImageBox.Flip or ImageViewer.Flip properties will reset back to false.

None

None of the following properties will reset back to their default values, instead they will keep their current values when a new image is set in he control

Reverse

The ImageBox.Reverse or ImageViewer.Reverse properties will reset back to false.

RotateAngle

The ImageBox.RotateAngle or ImageViewer.RotateAngle properties will reset back to 0.

ScaleFactor

The ImageBox.ScaleFactor or ImageViewer.ScaleFactor properties will reset back to 1.0.

ScrollPosition

The horizontal and vertical bars (if applicable) location will reset back to the top-left position

SizeMode

The ImageBox.SizeMode or ImageViewer.SizeMode properties will reset back to SizeMode.Normal.

Remarks

You can use the ImageBox.ResetImageViewOptions and ImageViewer.ResetImageViewOptions properties to control which of the display properties of the controls resets back to its default value when a new image is set into the ImageBox.Source, RasterImageBox.Image, ImageViewer.Source or RasterImageViewer.Image properties.

You can use a logical OR operation to combine any of the above options together. By setting these options, you can achieve effects such as if the control has a scale factor value of 1.5 (150 percent) and a new image is set, the scale factor does not reset and stays at 150 percent instead of going back to 100 percent.

Example

For XAML example, refer to ResetImageViewOptions.

For C#/VB examples, refer to ResetImageViewOptions.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Windows.Controls.ResetImageViewOptions

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

Leadtools.Windows.Controls Namespace

 

 


Products | Support | Contact Us | Copyright Notices

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