menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImageListAdv - API Reference

    Show / Hide Table of Contents

    Class ImageListAdv

    ImageList with support for images of different sizes and transparency.

    Inheritance
    System.Object
    ImageListAdv
    Implements
    System.ICloneable
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class ImageListAdv : Component, ICloneable

    Constructors

    ImageListAdv()

    Creates and initializes new ImageListAdv.

    Declaration
    public ImageListAdv()

    ImageListAdv(IContainer)

    Creates and initializes new ImageListAdv.

    Declaration
    public ImageListAdv(IContainer container)
    Parameters
    Type Name Description
    System.ComponentModel.IContainer container

    Container to add component to.

    Properties

    DPIImages

    Gets or sets the DPI based images

    Declaration
    public DPIAwareImageCollection DPIImages { get; }
    Property Value
    Type Description
    Syncfusion.Windows.Forms.Tools.DPIAwareImageCollection

    Images

    Gets collection of images.

    Declaration
    public ImageCollection Images { get; }
    Property Value
    Type Description
    ImageCollection

    ImageSize

    Gets or sets size of images. Used in drawing.

    Declaration
    public Size ImageSize { get; set; }
    Property Value
    Type Description
    System.Drawing.Size

    Tag

    Gets or sets tag object.

    Declaration
    public object Tag { get; set; }
    Property Value
    Type Description
    System.Object

    UseImageSize

    Gets or sets value indicating whether images should be drawn using ImageSize property.

    Declaration
    public bool UseImageSize { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Clone()

    Declaration
    public object Clone()
    Returns
    Type Description
    System.Object

    Draw(Graphics, Point, Int32)

    Draws selected image to specified Graphics. If UseImageSize property is set to true, image is drawn using ImageSize property; otherwise it's drawn using original size.

    Declaration
    public void Draw(Graphics g, Point pt, int index)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics to draw to.

    System.Drawing.Point pt

    Point to draw image at.

    System.Int32 index

    Index of image to draw.

    Draw(Graphics, Int32, Int32, Int32)

    Draws selected image to specified Graphics. If UseImageSize property is set to true, image is drawn using ImageSize property; otherwise it's drawn using original size.

    Declaration
    public void Draw(Graphics g, int x, int y, int index)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics to draw to.

    System.Int32 x

    X coordinate of point to draw image at.

    System.Int32 y

    Y coordinate of point to draw image at.

    System.Int32 index

    Index of image to draw.

    Draw(Graphics, Int32, Int32, Int32, Int32, Int32)

    Draws selected image to specified Graphics using given size.

    Declaration
    public void Draw(Graphics g, int x, int y, int width, int height, int index)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics to draw to.

    System.Int32 x

    X coordinate of point to draw image at.

    System.Int32 y

    Y coordinate of point to draw image at.

    System.Int32 width

    Width of rectangle to draw image to.

    System.Int32 height

    Height of rectangle to draw image to.

    System.Int32 index

    Index of image to draw.

    FromImageList(ImageList)

    creates ImageListAdv from ImageList.

    Declaration
    public static ImageListAdv FromImageList(ImageList list)
    Parameters
    Type Name Description
    System.Windows.Forms.ImageList list

    ImageList to create ImageListAdv from.

    Returns
    Type Description
    ImageListAdv

    Created ImageListAdv.

    ResetImageSize()

    Declaration
    protected void ResetImageSize()

    ShouldSerializeImageSize()

    Declaration
    protected bool ShouldSerializeImageSize()
    Returns
    Type Description
    System.Boolean

    ToImageList()

    Converts ImageListAdv to ImageList.

    Declaration
    public ImageList ToImageList()
    Returns
    Type Description
    System.Windows.Forms.ImageList

    ImageList with images from ImageListAdv.

    ToString()

    Creates string with info about ImageListAdv.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String with info about ImageListAdv

    Operators

    Explicit(ImageListAdv to ImageList)

    Explicitly converts ImageListAdv to ImageList.

    Declaration
    public static explicit operator ImageList(ImageListAdv list)
    Parameters
    Type Name Description
    ImageListAdv list

    ImageListAdv to convert.

    Returns
    Type Description
    System.Windows.Forms.ImageList

    ImageList with images from given ImageListAdv.

    Explicit(ImageList to ImageListAdv)

    Explicitly converts ImageList to ImageListAdv.

    Declaration
    public static explicit operator ImageListAdv(ImageList list)
    Parameters
    Type Name Description
    System.Windows.Forms.ImageList list

    ImageList to convert.

    Returns
    Type Description
    ImageListAdv

    ImageListAdv with images from given ImageList.

    Implements

    System.ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved