C# Class ComponentFactory.Krypton.Toolkit.FixedContentValue

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

Private Properties

Свойство Type Description
ShouldSerializeImage bool
ShouldSerializeImageTransparentColor bool
ShouldSerializeLongText bool
ShouldSerializeShortText bool

Méthodes publiques

Méthode 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

Méthode Description
ShouldSerializeImage ( ) : bool
ShouldSerializeImageTransparentColor ( ) : bool
ShouldSerializeLongText ( ) : bool
ShouldSerializeShortText ( ) : bool

Method Details

FixedContentValue() public méthode

Initialize a new instance of the FixedContentValue class.
public FixedContentValue ( ) : System
Résultat System

FixedContentValue() public méthode

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.
Résultat System

GetImage() public méthode

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

GetImageTransparentColor() public méthode

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

GetLongText() public méthode

Gets the content long text.
public GetLongText ( ) : string
Résultat string

GetShortText() public méthode

Gets the content short text.
public GetShortText ( ) : string
Résultat string