C# Class ComponentFactory.Krypton.Toolkit.FixedContentValue

Stores a text/extraText/Image triple of values as a content values source.
Inheritance: IContentValues
Mostra file Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
ShouldSerializeImage bool
ShouldSerializeImageTransparentColor bool
ShouldSerializeLongText bool
ShouldSerializeShortText bool

Public Methods

Method Description
FixedContentValue ( ) : System

Initialize a new instance of the FixedContentValue class.

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

Initialize a new instance of the FixedContentValue class.

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.

Private Methods

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

Method Details

FixedContentValue() public method

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

FixedContentValue() public method

Initialize a new instance of the FixedContentValue class.
public FixedContentValue ( 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 image transparent color value.
return System

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