C# Class ComponentFactory.Krypton.Toolkit.KryptonListItem

Inheritance: System.ComponentModel.Component, IContentValues
Mostra file Open project: Cocotteseb/Krypton Class Usage Examples

Private Properties

Property Type Description
ShouldSerializeImage bool
ShouldSerializeImageTransparentColor bool
ShouldSerializeLongText bool
ShouldSerializeShortText bool

Public Methods

Method Description
GetImage ( PaletteState state ) : Image

Gets the content image.

GetImageTransparentColor ( PaletteState state ) : Color

Gets the image color that should be transparent.

GetLongText ( ) : string

Gets the content long text.

GetShortText ( ) : string

Gets the content short text.

KryptonListItem ( ) : System

Initialize a new instance of the KryptonListItem class.

KryptonListItem ( string shortText ) : System

Initialize a new instance of the KryptonListItem class.

KryptonListItem ( string shortText, string longText ) : System

Initialize a new instance of the KryptonListItem class.

KryptonListItem ( string shortText, string longText, Image image ) : System

Initialize a new instance of the KryptonListItem class.

KryptonListItem ( string shortText, string longText, Image image, Color imageTransparentColor ) : System

Initialize a new instance of the KryptonListItem class.

ToString ( ) : string

Gets the string representation of the object.

Protected Methods

Method Description
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the PropertyChanged event.

Private Methods

Method Description
ShouldSerializeImage ( ) : bool
ShouldSerializeImageTransparentColor ( ) : bool
ShouldSerializeLongText ( ) : bool
ShouldSerializeShortText ( ) : bool

Method Details

GetImage() public method

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
return Image

GetImageTransparentColor() public method

Gets the image color that should be transparent.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image is needed.
return Color

GetLongText() public method

Gets the content long text.
public GetLongText ( ) : string
return string

GetShortText() public method

Gets the content short text.
public GetShortText ( ) : string
return string

KryptonListItem() public method

Initialize a new instance of the KryptonListItem class.
public KryptonListItem ( ) : System
return System

KryptonListItem() public method

Initialize a new instance of the KryptonListItem class.
public KryptonListItem ( string shortText ) : System
shortText string Initial short text value.
return System

KryptonListItem() public method

Initialize a new instance of the KryptonListItem class.
public KryptonListItem ( string shortText, string longText ) : System
shortText string Initial short text value.
longText string Initial long text value.
return System

KryptonListItem() public method

Initialize a new instance of the KryptonListItem class.
public KryptonListItem ( string shortText, string longText, Image image ) : System
shortText string Initial short text value.
longText string Initial long text value.
image Image Initial image value.
return System

KryptonListItem() public method

Initialize a new instance of the KryptonListItem class.
public KryptonListItem ( string shortText, string longText, Image image, Color imageTransparentColor ) : System
shortText string Initial short text value.
longText string Initial long text value.
image Image Initial image value.
imageTransparentColor Color Initial transparent image color.
return System

OnPropertyChanged() protected method

Raises the PropertyChanged event.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs A PropertyChangedEventArgs containing the event data.
return void

ToString() public method

Gets the string representation of the object.
public ToString ( ) : string
return string