Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
AutoResetScrollPosition Property
See Also 
Leadtools.WinForms Namespace > RasterImageViewer Class : AutoResetScrollPosition Property




Enables or disables the automatic reset of the AutoScrollPosition property.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Enables or disables the automatic reset of the AutoScrollPosition property.")>
<CategoryAttribute("Behavior")>
Public Overridable Property AutoResetScrollPosition As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterImageViewer
Dim value As Boolean
 
instance.AutoResetScrollPosition = value
 
value = instance.AutoResetScrollPosition
C# 
[DescriptionAttribute("Enables or disables the automatic reset of the AutoScrollPosition property.")]
[CategoryAttribute("Behavior")]
public virtual bool AutoResetScrollPosition {get; set;}
Managed Extensions for C++ 
[DescriptionAttribute("Enables or disables the automatic reset of the AutoScrollPosition property.")]
[CategoryAttribute("Behavior")]
public: __property virtual bool get_AutoResetScrollPosition();
public: __property virtual void set_AutoResetScrollPosition( 
   bool value
);
C++/CLI 
[DescriptionAttribute("Enables or disables the automatic reset of the AutoScrollPosition property.")]
[CategoryAttribute("Behavior")]
public:
virtual property bool AutoResetScrollPosition {
   bool get();
   void set (bool value);
}

Return Value

true to enable automatic reset, false to disable it.

Example

Remarks

When set to true, this will automatically reset the AutoScrollPosition property back to (0,0) when a new image is set to the viewer.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also