Partilhar via


Imagelist Class

Definition

The Imagelist class lets you work with a list of images.

public ref class Imagelist : Dynamics::AX::Application::BinData
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
public class Imagelist : Dynamics.AX.Application.BinData
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
type Imagelist = class
    inherit BinData
Public Class Imagelist
Inherits BinData
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
Imagelist
Attributes

Remarks

To work with a single image, use the Image class.

The following example creates an image list and adds the icons in the Shell32.dll file. It then deletes the fourth member of the list.

Imagelist list = new Imagelist( 
    Imagelist::iconWidth(), 
    Imagelist::iconHeight() ); 
list.loadIcons('shell32.dll'); 
print list.count(); 
list.remove(4); 
print list.count(); 
pause;

Constructors

Imagelist()
Imagelist(Int32, Int32, Boolean)
Imagelist(Int32, Int32)
Imagelist(IntPtr)

Fields

kernelClass (Inherited from XppObjectBase)

Methods

__shouldCallNew(Type)
add(Image)

Adds a new image to the image list.

addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
appendData(BinData) (Inherited from BinData)
appendToFile(String) (Inherited from BinData)
ascii85Encode() (Inherited from BinData)
autoResize()

Sets the Boolean autoResize flag, which determines whether new images are automatically resized.

autoResize(Boolean)
base64Encode() (Inherited from BinData)
Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
clear()

Removes all images from the image list.

compressLZ77(Int32) (Inherited from BinData)
copyData(BinData, Int32, Int32) (Inherited from BinData)
copyData(BinData, Int32) (Inherited from BinData)
copyData(BinData) (Inherited from BinData)
count()

Retrieves the number of images in an image list.

createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
decompressLZ77() (Inherited from BinData)
dragBegin(Int32, Int32, Int32)

Begins dragging an image.

dragEnd()

Ends a drag operation.

dragEnter(Int32, Int32, Int32)

Locks updates to the specified window during a drag operation and displays the drag image at the specified position in the window.

dragLeave(Int32)

Unlocks the specified window and hides the drag image, so that the window to be updated.

dragMove(Int32, Int32)

Moves the image that is being dragged during a drag-and-drop operation.

dragShowImage(Boolean)

Shows or hides the image that is being dragged.

draw(Int32, Int32, Int32, Int32, Boolean)
draw(Int32, Int32, Int32, Int32)

Draws an image list item in the specified device context.

equal(XppObjectBase) (Inherited from XppObjectBase)
finalize()
getAsciiData() (Inherited from BinData)
getData() (Inherited from BinData)
GetIntPtr()
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getStrData() (Inherited from BinData)
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getVariant() (Inherited from BinData)
getXppProxyReference(Type) (Inherited from XppObjectBase)
handle()
height()

Retrieves the height, in pixels, of the images in the image list.

iconHeight()

Retrieves the system metrics for the height of a standard icon.

iconWidth()

Retrieves the system metrics for the width of a standard icon.

IsManagedValid()
kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
loadFile(String, Int32, Int32) (Inherited from BinData)
loadFile(String, Int32) (Inherited from BinData)
loadFile(String) (Inherited from BinData)
loadIcons(String)

Loads icons from the specified resource into the image list.

MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
maskColor(Int32)

Sets the masking color.

newmethod()

Initializes an instance of the BinData class.

(Inherited from BinData)
newmethod(Int32, Int32, Boolean)
newmethod(Int32, Int32)

Creates a new empty list to hold images.

notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
remove(Int32)

Removes an image from an image list.

replace(Int32, Image)

Replaces an existing image in the list.

saveFile(String) (Inherited from BinData)
setAsciiData(String, Int32) (Inherited from BinData)
setAsciiData(String) (Inherited from BinData)
setBinaryData(Binary) (Inherited from BinData)
setData(Object[]) (Inherited from BinData)
setOverlayImage(Int32, Int32)

Adds an image to the list of images to use as overlay masks.

setStrData(String) (Inherited from BinData)
setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
setVariant(COMVariant) (Inherited from BinData)
size() (Inherited from BinData)
smallIconHeight()

Retrieves the system metrics for the height of a small icon.

smallIconWidth()

Retrieves the system metrics for the width of a small icon.

usageCount() (Inherited from XppObjectBase)
VerifyKernelClass() (Inherited from XppObjectBase)
wait() (Inherited from XppObjectBase)
width()

Retrieves the width, in pixels, of the images in the image list.

Xml() (Inherited from XppObjectBase)
Xml(Int32) (Inherited from XppObjectBase)

Applies to