Class IconCapability
- Namespace
- ZeroInstall.Model.Capabilities
- Assembly
- ZeroInstall.Model.dll
Abstract base class for capabilities that can have multiple Icons and descriptions.
public abstract class IconCapability : DefaultCapability, ICloneable<Capability>, IEquatable<Capability>, IEquatable<DefaultCapability>, IIconContainer, IDescriptionContainer, IEquatable<IconCapability>
- Inheritance
-
objectIconCapability
- Implements
- Derived
- Inherited Members
Constructors
IconCapability()
protected IconCapability()
Properties
Descriptions
Full descriptions for different languages, which can be several paragraphs long.
[Browsable(false)]
public LocalizableStringCollection Descriptions { get; }
Property Value
Icons
Zero or more icons to represent the capability. Used for things like file icons.
[Browsable(false)]
public List<Icon> Icons { get; }
Property Value
Methods
CloneFromTo(IconCapability, IconCapability)
Copies all members declared by IconCapability from one instance to another.
protected static void CloneFromTo(IconCapability from, IconCapability to)
Parameters
fromIconCapabilitytoIconCapability
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(IconCapability?)
protected bool Equals(IconCapability? other)
Parameters
otherIconCapability
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetIcon(string)
Returns the first icon with a specific MIME type.
public Icon? GetIcon(string mimeType)
Parameters
Returns
- Icon
The best matching icon that was found or
nullif no matching icon was found.
Operators
operator ==(IconCapability?, IconCapability?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(IconCapability? left, IconCapability? right)
Parameters
leftIconCapabilityThe left object
rightIconCapabilityThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(IconCapability?, IconCapability?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(IconCapability? left, IconCapability? right)
Parameters
leftIconCapabilityThe left object
rightIconCapabilityThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.