LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
AutoDisposeImages Property
See Also 
Leadtools.Windows.Controls Namespace > RasterImageListItem Class : AutoDisposeImages Property



Gets or sets a value indicating whether to auto dispose the old image when a new image is set into this RasterImageListItem. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property AutoDisposeImages As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterImageListItem
Dim value As Boolean
 
instance.AutoDisposeImages = value
 
value = instance.AutoDisposeImages
C# 
public bool AutoDisposeImages {get; set;}
C++/CLI 
public:
property bool AutoDisposeImages {
   bool get();
   void set (    bool value);
}

Property Value

true if the Leadtools.RasterImage object in Image is automatically disposed when a new image is set; otherwise, false. Default value is true.

Example

For XAML example, refer to AutoDisposeImages.

For C#/VB examples, refer to AutoDisposeImages.

Remarks

By default, whenever you set a new Leadtools.RasterImage object into the Image property, the old image (if any) is disposed. Set the value of this property to false to prevent disposing of the old image.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also