Search Results for

    Show / Hide Table of Contents

    ExcelFile.GetImageName Method

    Overloads

    • ExcelFile.GetImageName(Int32)
    • ExcelFile.GetImageName(Int32, Boolean, String)

    ExcelFile.GetImageName(Int32)

    Returns the image name at position imageIndex.

    Remarks

    Normally image names are automatically assigned by Excel, and are on the form "picture1", "picture2", etc. But you can name an image on Excel by selecting and then typing its name on the name combo box. (the combobox at the upper left corner on Excel). After that, you can use its name to identify it here.

    Syntax

    Namespace: FlexCel.Core

    public String GetImageName(Int32 imageIndex)

    Parameters

    <-> Parameter Type Description
    imageIndex Int32 Index of the image (1 based)

    Returns

    Image name.

    See also

    • ExcelFile

    ExcelFile.GetImageName(Int32, Boolean, String)

    Returns the image name at position imageIndex.

    Remarks

    Normally image names are automatically assigned by Excel, and are on the form "picture1", "picture2", etc. But you can name an image on Excel by selecting and then typing its name on the name combo box. (the combobox at the upper left corner on Excel). After that, you can use its name to identify it here.

    Syntax

    Namespace: FlexCel.Core

    public abstract String GetImageName(Int32 imageIndex, Boolean usesObjectIndex, String objectPath)

    Parameters

    <-> Parameter Type Description
    imageIndex Int32 Index of the image (1 based)
    usesObjectIndex Boolean If false (the default) then imageIndex is an index to the list of images.
    When true imageIndex is an index to the list of all objects in the sheet. When you have the object id, you can avoid calling ObjectIndexToImageIndex which is a slow method, by setting this parameter to true.
    objectPath String Path to the object, when the object is grouped with others. This parameter only has meaning if usesObjectIndex is true.

    If it is "absolute"(it starts with "\"), then the path includes the objectIndex, and the objectIndex is not used. An object path of "\1\2\3" is exactly the same as using objectIndex = 1 and objectPath = "2\3"

    Returns

    Image name.

    See also

    • ExcelFile
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com