[]
        
(Showing Draft Content)

C1.Framework.IconElement

IconElement Class

Represents a visual icon that can be tinted and resized.

Implements
Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public abstract class IconElement : Element, ISupportUia

Constructors

Name Description
IconElement()

Initializes a new instance of the IconElement class.

IconElement(C1Icon)

Initializes a new instance of the IconElement class.

IconElement(C1Icon, Style)

Initializes a new instance of the IconElement class.

IconElement(string)

Initializes a new instance of the IconElement class.

Fields

Name Description
DEFAULT_HEIGHT

The default height of an icon.

DEFAULT_WIDTH

The default width of an icon.

Properties

Name Description
BackColor

Gets or sets the color used to paint the icon's background.

Color

Gets or sets the color used to paint the icon.

IsIconDirty
Key

Gets or sets the key used to retrieve the image.

Padding

Gets or sets the padding of the icon.

RenderBox

Returns rectangle (in the icon coordinates) to render icon.

ShouldDispose
ShouldRasterize

Determines whether icon needs bitmap cache for drawing.

ShouldResize

Determines whether icon image should be resized according to the C1Icon element size.

Methods

Name Description
CreateElement(C1Icon)

Creates the IconElement to show the C1Icon.

CreateElement(C1Icon, Style)

Creates the IconElement to show the C1Icon.

FinalizeUI()

Finalizes the user interface. This method is called when element is removed from UI.

GetImage(ref Image, int, int)

Gets the image represented by this C1Icon.

InitializeUI()

Initializes the UI.

Layout(Graphics)

Layout this element based on its style and contents.

OnIconChanged(C1Icon, PropertyChangedEventArgs)

Updates element properties on icon property changes.

RenderContent(Graphics, Rectangle)

Renders the element contents into the specified Graphics object at the specified location.

RenderIcon(Style, Graphics, Rectangle)
RescaleConstantsForDpi(int, int)

Provides constants for rescaling the control when a DPI change occurs.

SetIconDirty(bool)

Notifies C1Icon element that UI should be re-initialized for the next drawing operation.

ToString()

Gets a string representation of this C1BitmapIcon.