ViewStyle Property

Summary

Gets or sets how items are displayed in the control.

Syntax

C#
C++/CLI
C++
public RasterImageListViewStyle ViewStyle { get; set; } 
public: 
property RasterImageListViewStyle ViewStyle { 
   RasterImageListViewStyle get(); 
   void set (    RasterImageListViewStyle ); 
} 
public:  
   property RasterImageListViewStyle^ ViewStyle 
   { 
      RasterImageListViewStyle^ get() 
      void set(RasterImageListViewStyle^ value) 
   } 

Property Value

A RasterImageListViewStyle enumeration that specifies how the items are displayed in the control.

Remarks

For more information, refer to the RasterImageListViewStyle enumeration.

Example

C#
using Leadtools.WinForms; 
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
/// This example will show the different view styles of a <see cref="RasterImageList"/> control. 
public void RasterImageList_ViewStyle(RasterImageList imageList) 
{ 
   // Save the current view style 
   RasterImageListViewStyle currentStyle = imageList.ViewStyle; 
 
   // Show all the different styles available 
   Array a = Enum.GetValues(typeof(RasterImageListViewStyle)); 
   foreach (RasterImageListViewStyle style in a) 
   { 
      imageList.ViewStyle = style; 
      MessageBox.Show("ViewStyle = " + style.ToString()); 
   } 
 
   // Restore original view style 
   imageList.ViewStyle = currentStyle; 
} 

Requirements

Target Platforms

See Also

Reference

RasterImageList Class

RasterImageList Members

Help Version 22.0.2023.2.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.