Struct IconReference
- Namespace
- Microsoft.WindowsAPICodePack.Shell
- Assembly
- Microsoft.WindowsAPICodePack.Shell.dll
A refence to an icon resource
public struct IconReference
- Inherited Members
Constructors
IconReference(string)
Overloaded constructor takes in the module name and resource id separated by a comma.
public IconReference(string refPath)
Parameters
refPath
stringReference path for the icon consiting of the module name and resource id.
IconReference(string, int)
Overloaded constructor takes in the module name and resource id for the icon reference.
public IconReference(string moduleName, int resourceId)
Parameters
moduleName
stringString specifying the name of an executable file, DLL, or icon file
resourceId
intZero-based index of the icon
Properties
ModuleName
String specifying the name of an executable file, DLL, or icon file
public string ModuleName { get; set; }
Property Value
ReferencePath
Reference to a specific icon within a EXE, DLL or icon file.
public string ReferencePath { get; set; }
Property Value
ResourceId
Zero-based index of the icon
public int ResourceId { readonly get; set; }
Property Value
Methods
Equals(object)
Determines if this object is equal to another.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare
Returns
- bool
Returns true if the objects are equal; false otherwise.
GetHashCode()
Generates a nearly unique hashcode for this structure.
public override int GetHashCode()
Returns
- int
A hash code.
Operators
operator ==(IconReference, IconReference)
Implements the == (equality) operator.
public static bool operator ==(IconReference icon1, IconReference icon2)
Parameters
icon1
IconReferenceFirst object to compare.
icon2
IconReferenceSecond object to compare.
Returns
- bool
True if icon1 equals icon1; false otherwise.
operator !=(IconReference, IconReference)
Implements the != (unequality) operator.
public static bool operator !=(IconReference icon1, IconReference icon2)
Parameters
icon1
IconReferenceFirst object to compare.
icon2
IconReferenceSecond object to compare.
Returns
- bool
True if icon1 does not equals icon1; false otherwise.