C# Class ComponentFactory.Krypton.Navigator.PaletteRedirectRibbonTabContent

Redirect ribbon tab values based on the incoming state of the request.
Inheritance: ComponentFactory.Krypton.Toolkit.PaletteRedirect
Show file Open project: Cocotteseb/Krypton Class Usage Examples

Public Methods

Method Description
GetContentAdjacentGap ( PaletteContentStyle style, PaletteState state ) : int

Gets the padding between adjacent content items.

GetContentDraw ( PaletteContentStyle style, PaletteState state ) : InheritBool

Gets a value indicating if content should be drawn.

GetContentDrawFocus ( PaletteContentStyle style, PaletteState state ) : InheritBool

Gets a value indicating if content should be drawn with focus indication.

GetContentImageEffect ( PaletteContentStyle style, PaletteState state ) : PaletteImageEffect

Gets the effect applied to drawing of the image.

GetContentImageH ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign

Gets the horizontal relative alignment of the image.

GetContentImageV ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign

Gets the vertical relative alignment of the image.

GetContentLongTextColor1 ( PaletteContentStyle style, PaletteState state ) : Color

Gets the first back color for the long text.

GetContentLongTextColor2 ( PaletteContentStyle style, PaletteState state ) : Color

Gets the second back color for the long text.

GetContentLongTextColorAlign ( PaletteContentStyle style, PaletteState state ) : PaletteRectangleAlign

Gets the color alignment for the long text.

GetContentLongTextColorStyle ( PaletteContentStyle style, PaletteState state ) : PaletteColorStyle

Gets the color drawing style for the long text.

GetContentLongTextFont ( PaletteContentStyle style, PaletteState state ) : Font

Gets the font for the long text.

GetContentLongTextH ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign

Gets the horizontal relative alignment of the long text.

GetContentLongTextHint ( PaletteContentStyle style, PaletteState state ) : PaletteTextHint

Gets the rendering hint for the long text.

GetContentLongTextImage ( PaletteContentStyle style, PaletteState state ) : Image

Gets a background image for the long text.

GetContentLongTextImageAlign ( PaletteContentStyle style, PaletteState state ) : PaletteRectangleAlign

Gets the image alignment for the long text.

GetContentLongTextImageStyle ( PaletteContentStyle style, PaletteState state ) : PaletteImageStyle

Gets the background image style for the long text.

GetContentLongTextMultiLine ( PaletteContentStyle style, PaletteState state ) : InheritBool

Gets the flag indicating if multiline text is allowed for long text.

GetContentLongTextMultiLineH ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign

Gets the horizontal relative alignment of multiline long text.

GetContentLongTextPrefix ( PaletteContentStyle style, PaletteState state ) : PaletteTextHotkeyPrefix

Gets the prefix drawing setting for long text.

GetContentLongTextTrim ( PaletteContentStyle style, PaletteState state ) : PaletteTextTrim

Gets the text trimming to use for long text.

GetContentLongTextV ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign

Gets the vertical relative alignment of the long text.

GetContentPadding ( PaletteContentStyle style, PaletteState state ) : Padding

Gets the padding between the border and content drawing.

GetContentShortTextColor1 ( PaletteContentStyle style, PaletteState state ) : Color

Gets the first back color for the short text.

GetContentShortTextColor2 ( PaletteContentStyle style, PaletteState state ) : Color

Gets the second back color for the short text.

GetContentShortTextColorAlign ( PaletteContentStyle style, PaletteState state ) : PaletteRectangleAlign

Gets the color alignment for the short text.

GetContentShortTextColorAngle ( PaletteContentStyle style, PaletteState state ) : float

Gets the color background angle for the short text.

GetContentShortTextColorStyle ( PaletteContentStyle style, PaletteState state ) : PaletteColorStyle

Gets the color drawing style for the short text.

GetContentShortTextFont ( PaletteContentStyle style, PaletteState state ) : Font

Gets the font for the short text.

GetContentShortTextH ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign

Gets the horizontal relative alignment of the short text.

GetContentShortTextHint ( PaletteContentStyle style, PaletteState state ) : PaletteTextHint

Gets the rendering hint for the short text.

GetContentShortTextImage ( PaletteContentStyle style, PaletteState state ) : Image

Gets a background image for the short text.

GetContentShortTextImageAlign ( PaletteContentStyle style, PaletteState state ) : PaletteRectangleAlign

Gets the image alignment for the short text.

GetContentShortTextImageStyle ( PaletteContentStyle style, PaletteState state ) : PaletteImageStyle

Gets the background image style.

GetContentShortTextMultiLine ( PaletteContentStyle style, PaletteState state ) : InheritBool

Gets the flag indicating if multiline text is allowed for short text.

GetContentShortTextMultiLineH ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign

Gets the horizontal relative alignment of multiline short text.

GetContentShortTextPrefix ( PaletteContentStyle style, PaletteState state ) : PaletteTextHotkeyPrefix

Gets the prefix drawing setting for short text.

GetContentShortTextTrim ( PaletteContentStyle style, PaletteState state ) : PaletteTextTrim

Gets the text trimming to use for short text.

GetContentShortTextV ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign

Gets the vertical relative alignment of the short text.

GetRibbonBackColor1 ( PaletteRibbonBackStyle style, PaletteState state ) : Color

Gets the first background color for the ribbon item.

GetRibbonBackColor2 ( PaletteRibbonBackStyle style, PaletteState state ) : Color

Gets the second background color for the ribbon item.

GetRibbonBackColor3 ( PaletteRibbonBackStyle style, PaletteState state ) : Color

Gets the third background color for the ribbon item.

GetRibbonBackColor4 ( PaletteRibbonBackStyle style, PaletteState state ) : Color

Gets the fourth background color for the ribbon item.

GetRibbonBackColor5 ( PaletteRibbonBackStyle style, PaletteState state ) : Color

Gets the fifth background color for the ribbon item.

GetRibbonBackColorStyle ( PaletteRibbonBackStyle style, PaletteState state ) : PaletteRibbonColorStyle

Gets the background drawing style for the ribbon item.

GetRibbonTextColor ( PaletteRibbonTextStyle style, PaletteState state ) : Color

Gets the tab color for the item text.

PaletteRedirectRibbonTabContent ( IPalette target ) : System

Initialize a new instance of the PaletteRedirectRibbonDouble class.

PaletteRedirectRibbonTabContent ( IPalette target, IPaletteRibbonBack disabledBack, IPaletteRibbonBack normalBack, IPaletteRibbonBack pressedBack, IPaletteRibbonBack trackingBack, IPaletteRibbonBack selectedBack, IPaletteRibbonBack focusOverrideBack, IPaletteRibbonText disabledText, IPaletteRibbonText normalText, IPaletteRibbonText pressedText, IPaletteRibbonText trackingText, IPaletteRibbonText selectedText, IPaletteRibbonText focusOverrideText, IPaletteContent disabledContent, IPaletteContent normalContent, IPaletteContent pressedContent, IPaletteContent trackingContent, IPaletteContent selectedContent, IPaletteContent focusOverrideContent ) : System

Initialize a new instance of the PaletteRedirectRibbonDouble class.

ResetRedirectStates ( ) : void

Reset the redirection states to null.

SetRedirectStates ( PaletteRibbonTabContent disabled, PaletteRibbonTabContent normal, PaletteRibbonTabContent pressed, PaletteRibbonTabContent tracking, PaletteRibbonTabContent selected, PaletteRibbonTabContentRedirect focusOverride ) : void

Set the redirection states.

Private Methods

Method Description
GetBackInherit ( PaletteState state ) : IPaletteRibbonBack
GetContentInherit ( PaletteState state ) : IPaletteContent
GetTextInherit ( PaletteState state ) : IPaletteRibbonText

Method Details

GetContentAdjacentGap() public method

Gets the padding between adjacent content items.
public GetContentAdjacentGap ( PaletteContentStyle style, PaletteState state ) : int
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return int

GetContentDraw() public method

Gets a value indicating if content should be drawn.
public GetContentDraw ( PaletteContentStyle style, PaletteState state ) : InheritBool
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return InheritBool

GetContentDrawFocus() public method

Gets a value indicating if content should be drawn with focus indication.
public GetContentDrawFocus ( PaletteContentStyle style, PaletteState state ) : InheritBool
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return InheritBool

GetContentImageEffect() public method

Gets the effect applied to drawing of the image.
public GetContentImageEffect ( PaletteContentStyle style, PaletteState state ) : PaletteImageEffect
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteImageEffect

GetContentImageH() public method

Gets the horizontal relative alignment of the image.
public GetContentImageH ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRelativeAlign

GetContentImageV() public method

Gets the vertical relative alignment of the image.
public GetContentImageV ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRelativeAlign

GetContentLongTextColor1() public method

Gets the first back color for the long text.
public GetContentLongTextColor1 ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color

GetContentLongTextColor2() public method

Gets the second back color for the long text.
public GetContentLongTextColor2 ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color

GetContentLongTextColorAlign() public method

Gets the color alignment for the long text.
public GetContentLongTextColorAlign ( PaletteContentStyle style, PaletteState state ) : PaletteRectangleAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRectangleAlign

GetContentLongTextColorStyle() public method

Gets the color drawing style for the long text.
public GetContentLongTextColorStyle ( PaletteContentStyle style, PaletteState state ) : PaletteColorStyle
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteColorStyle

GetContentLongTextFont() public method

Gets the font for the long text.
public GetContentLongTextFont ( PaletteContentStyle style, PaletteState state ) : Font
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return System.Drawing.Font

GetContentLongTextH() public method

Gets the horizontal relative alignment of the long text.
public GetContentLongTextH ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRelativeAlign

GetContentLongTextHint() public method

Gets the rendering hint for the long text.
public GetContentLongTextHint ( PaletteContentStyle style, PaletteState state ) : PaletteTextHint
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteTextHint

GetContentLongTextImage() public method

Gets a background image for the long text.
public GetContentLongTextImage ( PaletteContentStyle style, PaletteState state ) : Image
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Image

GetContentLongTextImageAlign() public method

Gets the image alignment for the long text.
public GetContentLongTextImageAlign ( PaletteContentStyle style, PaletteState state ) : PaletteRectangleAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRectangleAlign

GetContentLongTextImageStyle() public method

Gets the background image style for the long text.
public GetContentLongTextImageStyle ( PaletteContentStyle style, PaletteState state ) : PaletteImageStyle
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteImageStyle

GetContentLongTextMultiLine() public method

Gets the flag indicating if multiline text is allowed for long text.
public GetContentLongTextMultiLine ( PaletteContentStyle style, PaletteState state ) : InheritBool
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return InheritBool

GetContentLongTextMultiLineH() public method

Gets the horizontal relative alignment of multiline long text.
public GetContentLongTextMultiLineH ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRelativeAlign

GetContentLongTextPrefix() public method

Gets the prefix drawing setting for long text.
public GetContentLongTextPrefix ( PaletteContentStyle style, PaletteState state ) : PaletteTextHotkeyPrefix
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteTextHotkeyPrefix

GetContentLongTextTrim() public method

Gets the text trimming to use for long text.
public GetContentLongTextTrim ( PaletteContentStyle style, PaletteState state ) : PaletteTextTrim
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteTextTrim

GetContentLongTextV() public method

Gets the vertical relative alignment of the long text.
public GetContentLongTextV ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRelativeAlign

GetContentPadding() public method

Gets the padding between the border and content drawing.
public GetContentPadding ( PaletteContentStyle style, PaletteState state ) : Padding
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Padding

GetContentShortTextColor1() public method

Gets the first back color for the short text.
public GetContentShortTextColor1 ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color

GetContentShortTextColor2() public method

Gets the second back color for the short text.
public GetContentShortTextColor2 ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color

GetContentShortTextColorAlign() public method

Gets the color alignment for the short text.
public GetContentShortTextColorAlign ( PaletteContentStyle style, PaletteState state ) : PaletteRectangleAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRectangleAlign

GetContentShortTextColorAngle() public method

Gets the color background angle for the short text.
public GetContentShortTextColorAngle ( PaletteContentStyle style, PaletteState state ) : float
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return float

GetContentShortTextColorStyle() public method

Gets the color drawing style for the short text.
public GetContentShortTextColorStyle ( PaletteContentStyle style, PaletteState state ) : PaletteColorStyle
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteColorStyle

GetContentShortTextFont() public method

Gets the font for the short text.
public GetContentShortTextFont ( PaletteContentStyle style, PaletteState state ) : Font
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return System.Drawing.Font

GetContentShortTextH() public method

Gets the horizontal relative alignment of the short text.
public GetContentShortTextH ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRelativeAlign

GetContentShortTextHint() public method

Gets the rendering hint for the short text.
public GetContentShortTextHint ( PaletteContentStyle style, PaletteState state ) : PaletteTextHint
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteTextHint

GetContentShortTextImage() public method

Gets a background image for the short text.
public GetContentShortTextImage ( PaletteContentStyle style, PaletteState state ) : Image
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Image

GetContentShortTextImageAlign() public method

Gets the image alignment for the short text.
public GetContentShortTextImageAlign ( PaletteContentStyle style, PaletteState state ) : PaletteRectangleAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRectangleAlign

GetContentShortTextImageStyle() public method

Gets the background image style.
public GetContentShortTextImageStyle ( PaletteContentStyle style, PaletteState state ) : PaletteImageStyle
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteImageStyle

GetContentShortTextMultiLine() public method

Gets the flag indicating if multiline text is allowed for short text.
public GetContentShortTextMultiLine ( PaletteContentStyle style, PaletteState state ) : InheritBool
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return InheritBool

GetContentShortTextMultiLineH() public method

Gets the horizontal relative alignment of multiline short text.
public GetContentShortTextMultiLineH ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRelativeAlign

GetContentShortTextPrefix() public method

Gets the prefix drawing setting for short text.
public GetContentShortTextPrefix ( PaletteContentStyle style, PaletteState state ) : PaletteTextHotkeyPrefix
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteTextHotkeyPrefix

GetContentShortTextTrim() public method

Gets the text trimming to use for short text.
public GetContentShortTextTrim ( PaletteContentStyle style, PaletteState state ) : PaletteTextTrim
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteTextTrim

GetContentShortTextV() public method

Gets the vertical relative alignment of the short text.
public GetContentShortTextV ( PaletteContentStyle style, PaletteState state ) : PaletteRelativeAlign
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return PaletteRelativeAlign

GetRibbonBackColor1() public method

Gets the first background color for the ribbon item.
public GetRibbonBackColor1 ( PaletteRibbonBackStyle style, PaletteState state ) : Color
style PaletteRibbonBackStyle Style of the ribbon color requested.
state PaletteState Palette value should be applicable to this state.
return Color

GetRibbonBackColor2() public method

Gets the second background color for the ribbon item.
public GetRibbonBackColor2 ( PaletteRibbonBackStyle style, PaletteState state ) : Color
style PaletteRibbonBackStyle Style of the ribbon color requested.
state PaletteState Palette value should be applicable to this state.
return Color

GetRibbonBackColor3() public method

Gets the third background color for the ribbon item.
public GetRibbonBackColor3 ( PaletteRibbonBackStyle style, PaletteState state ) : Color
style PaletteRibbonBackStyle Style of the ribbon color requested.
state PaletteState Palette value should be applicable to this state.
return Color

GetRibbonBackColor4() public method

Gets the fourth background color for the ribbon item.
public GetRibbonBackColor4 ( PaletteRibbonBackStyle style, PaletteState state ) : Color
style PaletteRibbonBackStyle Style of the ribbon color requested.
state PaletteState Palette value should be applicable to this state.
return Color

GetRibbonBackColor5() public method

Gets the fifth background color for the ribbon item.
public GetRibbonBackColor5 ( PaletteRibbonBackStyle style, PaletteState state ) : Color
style PaletteRibbonBackStyle Style of the ribbon color requested.
state PaletteState Palette value should be applicable to this state.
return Color

GetRibbonBackColorStyle() public method

Gets the background drawing style for the ribbon item.
public GetRibbonBackColorStyle ( PaletteRibbonBackStyle style, PaletteState state ) : PaletteRibbonColorStyle
style PaletteRibbonBackStyle Style of the ribbon back style requested.
state PaletteState Palette value should be applicable to this state.
return PaletteRibbonColorStyle

GetRibbonTextColor() public method

Gets the tab color for the item text.
public GetRibbonTextColor ( PaletteRibbonTextStyle style, PaletteState state ) : Color
style PaletteRibbonTextStyle Style of the ribbon color requested.
state PaletteState Palette value should be applicable to this state.
return Color

PaletteRedirectRibbonTabContent() public method

Initialize a new instance of the PaletteRedirectRibbonDouble class.
public PaletteRedirectRibbonTabContent ( IPalette target ) : System
target IPalette Initial palette target for redirection.
return System

PaletteRedirectRibbonTabContent() public method

Initialize a new instance of the PaletteRedirectRibbonDouble class.
public PaletteRedirectRibbonTabContent ( IPalette target, IPaletteRibbonBack disabledBack, IPaletteRibbonBack normalBack, IPaletteRibbonBack pressedBack, IPaletteRibbonBack trackingBack, IPaletteRibbonBack selectedBack, IPaletteRibbonBack focusOverrideBack, IPaletteRibbonText disabledText, IPaletteRibbonText normalText, IPaletteRibbonText pressedText, IPaletteRibbonText trackingText, IPaletteRibbonText selectedText, IPaletteRibbonText focusOverrideText, IPaletteContent disabledContent, IPaletteContent normalContent, IPaletteContent pressedContent, IPaletteContent trackingContent, IPaletteContent selectedContent, IPaletteContent focusOverrideContent ) : System
target IPalette Initial palette target for redirection.
disabledBack IPaletteRibbonBack Redirection for back disabled state requests.
normalBack IPaletteRibbonBack Redirection for back normal state requests.
pressedBack IPaletteRibbonBack Redirection for back pressed state requests.
trackingBack IPaletteRibbonBack Redirection for back tracking state requests.
selectedBack IPaletteRibbonBack Redirection for selected states requests.
focusOverrideBack IPaletteRibbonBack Redirection for back focus override state requests.
disabledText IPaletteRibbonText Redirection for text disabled state requests.
normalText IPaletteRibbonText Redirection for text normal state requests.
pressedText IPaletteRibbonText Redirection for text pressed state requests.
trackingText IPaletteRibbonText Redirection for text tracking state requests.
selectedText IPaletteRibbonText Redirection for text selected states requests.
focusOverrideText IPaletteRibbonText Redirection for text focus override state requests.
disabledContent IPaletteContent Redirection for content disabled state requests.
normalContent IPaletteContent Redirection for content normal state requests.
pressedContent IPaletteContent Redirection for content pressed state requests.
trackingContent IPaletteContent Redirection for content tracking state requests.
selectedContent IPaletteContent Redirection for content selected states requests.
focusOverrideContent IPaletteContent Redirection for content focus override state requests.
return System

ResetRedirectStates() public method

Reset the redirection states to null.
public ResetRedirectStates ( ) : void
return void

SetRedirectStates() public method

Set the redirection states.
public SetRedirectStates ( PaletteRibbonTabContent disabled, PaletteRibbonTabContent normal, PaletteRibbonTabContent pressed, PaletteRibbonTabContent tracking, PaletteRibbonTabContent selected, PaletteRibbonTabContentRedirect focusOverride ) : void
disabled PaletteRibbonTabContent Redirection for disabled state requests.
normal PaletteRibbonTabContent Redirection for normal state requests.
pressed PaletteRibbonTabContent Redirection for pressed state requests.
tracking PaletteRibbonTabContent Redirection for tracking state requests.
selected PaletteRibbonTabContent Redirection for selected states requests.
focusOverride PaletteRibbonTabContentRedirect Redirection for focus override state requests.
return void