[]
        
(Showing Draft Content)

C1.Framework.C1BitmapIcon

C1BitmapIcon Class

Represents an icon created from an image.

Inheritance
C1BitmapIcon
Namespace: C1.Framework
Assembly: C1.Win.8.dll
Syntax
public class C1BitmapIcon : C1Icon, INotifyPropertyChanged, ICloneable
Remarks

The file that you use should be a solid image on a transparent background. The bitmap image is expected to be a true bitmap that has transparent pixels and non-transparent pixels. The recommended format is PNG. Other file-format image sources will load but result in a solid block of the foreground color. Caution: Resizing bitmaps at runtime might hurt application performance and result in blurry images. Consider using fixed-size images where possible.

Constructors

Name Description
C1BitmapIcon()

Initializes a new instance of the C1BitmapIcon class.

C1BitmapIcon(string)

Initializes a new instance of the C1BitmapIcon class.

C1BitmapIcon(string, Size, Color, Image)

Initializes a new instance of the C1BitmapIcon class with specified key, size and color.

C1BitmapIcon(string, Size, Color, object, int)

Initializes a new instance of the C1BitmapIcon class with specified key, size and color.

Properties

Name Description
ImageIndex

Gets or sets the index of the small image in the SmallImageList.

ImageKey

Gets or sets the key of the small image in the SmallImageList.

ImageList

Gets or sets the object that contains the images to display.

ShowAsMonochrome

Gets or sets a value that indicates whether the bitmap is shown in a single color.

Source

Gets or sets the image source.

Stretch

Gets or sets a Stretch enumeration value that describes how the shape fills its allocated space.

Methods

Name Description
Clone()

Creates a new object that is a copy of the current instance.

Equals(object)

Indicates whether the specified object is a C1BitmapIcon and has the same property values as this icon object.

GetHashCode()
ReadXml(XmlNode)

Reads this C1Icon from an System.Xml.XmlReader.

WriteXml(XmlWriter)

Writes this C1Icon into an System.Xml.XmlWriter.