C# 클래스 ComponentFactory.Krypton.Toolkit.ButtonSpec

상속: System.ComponentModel.Component, IButtonSpecValues, ICloneable
파일 보기 프로젝트 열기: ComponentFactory/Krypton 1 사용 예제들

Private Properties

프로퍼티 타입 설명
OnImageStateChanged void
ResetEdge void
ShouldSerializeColorMap bool
ShouldSerializeEdge bool
ShouldSerializeExtraText bool
ShouldSerializeImage bool
ShouldSerializeImageStates bool
ShouldSerializeImageTransparentColor bool
ShouldSerializeOrientation bool
ShouldSerializeStyle bool
ShouldSerializeText bool
ShouldSerializeToolTipBody bool
ShouldSerializeToolTipImage bool
ShouldSerializeToolTipImageTransparentColor bool
ShouldSerializeToolTipStyle bool
ShouldSerializeToolTipTitle bool

공개 메소드들

메소드 설명
ButtonSpec ( ) : System

Initialize a new instance of the ButtonSpec class.

Clone ( ) : object

Make a clone of this object.

CopyFrom ( ButtonSpec source ) : void

Value copy from the provided source to ourself.

GetChecked ( IPalette palette ) : ButtonCheckState

Gets the button checked state.

GetColorMap ( IPalette palette ) : Color

Gets the color to remap from the image to the container foreground.

GetEdge ( IPalette palette ) : RelativeEdgeAlign

Gets the edge for the button.

GetEnabled ( IPalette palette ) : ButtonEnabled

Gets the button enabled state.

GetImage ( IPalette palette, PaletteState state ) : Image

Gets the button image.

GetImageTransparentColor ( IPalette palette ) : Color

Gets the image transparent color.

GetLocation ( IPalette palette ) : HeaderLocation

Gets the button location.

GetLongText ( IPalette palette ) : string

Gets the button long text.

GetOrientation ( IPalette palette ) : ButtonOrientation

Gets the button orienation.

GetShortText ( IPalette palette ) : string

Gets the button short text.

GetStyle ( IPalette palette ) : ButtonStyle

Gets the button style.

GetToolTipTitle ( IPalette palette ) : string

Gets the button tooltip title text.

GetView ( ) : ViewBase

Get the current view associated with the button spec.

GetViewEnabled ( ) : bool

Gets a value indicating if the associated view is enabled.

GetVisible ( IPalette palette ) : bool

Gets the button visible value.

PerformClick ( ) : void

Generates a Click event for the control.

PerformClick ( EventArgs e ) : void

Generates a Click event for the control.

ResetAllowInheritExtraText ( ) : void

Resets the AllowInheritExtraText property to its default value.

ResetAllowInheritImage ( ) : void

Resets the AllowInheritImage property to its default value.

ResetAllowInheritText ( ) : void

Resets the AllowInheritText property to its default value.

ResetAllowInheritToolTipTitle ( ) : void

Resets the AllowInheritToolTipTitle property to its default value.

ResetColorMap ( ) : void

Resets the ColorMap property to its default value.

ResetExtraText ( ) : void

Resets the ExtraText property to its default value.

ResetImage ( ) : void

Resets the Image property to its default value.

ResetImageTransparentColor ( ) : void

Resets the ImageTransparentColor property to its default value.

ResetOrientation ( ) : void

Resets the Orientation property to its default value.

ResetStyle ( ) : void

Resets the Style property to its default value.

ResetText ( ) : void

Resets the Text property to its default value.

ResetToolTipBody ( ) : void

Resets the ToolTipBody property to its default value.

ResetToolTipImage ( ) : void

Resets the ToolTipImage property to its default value.

ResetToolTipImageTransparentColor ( ) : void

Resets the ToolTipImageTransparentColor property to its default value.

ResetToolTipStyle ( ) : void

Resets the ToolTipStyle property to its default value.

ResetToolTipTitle ( ) : void

Resets the ToolTipTitle property to its default value.

ResetUniqueName ( ) : void

Resets the UniqueName property to its default value.

SetView ( ViewBase view ) : void

Sets the current view associated with the button spec.

ToString ( ) : string

Returns a string that represents the current defaulted state.

보호된 메소드들

메소드 설명
ConvertToButtonOrientation ( PaletteButtonOrientation paletteButtonOrientation ) : ButtonOrientation

Convert from palette specific button orientation to resolved button orientation.

ConvertToButtonStyle ( PaletteButtonStyle paletteButtonStyle ) : ButtonStyle

Convert from palette specific button style to resolved button style.

ConvertToRelativeEdgeAlign ( PaletteRelativeEdgeAlign paletteRelativeEdgeAlign ) : RelativeEdgeAlign

Convert from palette specific edge alignment to resolved edge alignment.

GenerateClick ( EventArgs e ) : void

Generates the Click event.

OnButtonSpecPropertyChanged ( string propertyName ) : void

Raises the ButtonSpecPropertyChanged event.

OnClick ( EventArgs e ) : void

Raises the Click event.

OnCommandPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles a change in the property of an attached command.

비공개 메소드들

메소드 설명
OnImageStateChanged ( object sender, NeedLayoutEventArgs e ) : void
ResetEdge ( ) : void
ShouldSerializeColorMap ( ) : bool
ShouldSerializeEdge ( ) : bool
ShouldSerializeExtraText ( ) : bool
ShouldSerializeImage ( ) : bool
ShouldSerializeImageStates ( ) : bool
ShouldSerializeImageTransparentColor ( ) : bool
ShouldSerializeOrientation ( ) : bool
ShouldSerializeStyle ( ) : bool
ShouldSerializeText ( ) : bool
ShouldSerializeToolTipBody ( ) : bool
ShouldSerializeToolTipImage ( ) : bool
ShouldSerializeToolTipImageTransparentColor ( ) : bool
ShouldSerializeToolTipStyle ( ) : bool
ShouldSerializeToolTipTitle ( ) : bool

메소드 상세

ButtonSpec() 공개 메소드

Initialize a new instance of the ButtonSpec class.
public ButtonSpec ( ) : System
리턴 System

Clone() 공개 메소드

Make a clone of this object.
public Clone ( ) : object
리턴 object

ConvertToButtonOrientation() 보호된 메소드

Convert from palette specific button orientation to resolved button orientation.
protected ConvertToButtonOrientation ( PaletteButtonOrientation paletteButtonOrientation ) : ButtonOrientation
paletteButtonOrientation PaletteButtonOrientation Palette specific button orientation.
리턴 ButtonOrientation

ConvertToButtonStyle() 보호된 메소드

Convert from palette specific button style to resolved button style.
protected ConvertToButtonStyle ( PaletteButtonStyle paletteButtonStyle ) : ButtonStyle
paletteButtonStyle PaletteButtonStyle Palette specific button style.
리턴 ButtonStyle

ConvertToRelativeEdgeAlign() 보호된 메소드

Convert from palette specific edge alignment to resolved edge alignment.
protected ConvertToRelativeEdgeAlign ( PaletteRelativeEdgeAlign paletteRelativeEdgeAlign ) : RelativeEdgeAlign
paletteRelativeEdgeAlign PaletteRelativeEdgeAlign Palette specific edge alignment.
리턴 RelativeEdgeAlign

CopyFrom() 공개 메소드

Value copy from the provided source to ourself.
public CopyFrom ( ButtonSpec source ) : void
source ButtonSpec Source instance.
리턴 void

GenerateClick() 보호된 메소드

Generates the Click event.
protected GenerateClick ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
리턴 void

GetChecked() 공개 추상적인 메소드

Gets the button checked state.
public abstract GetChecked ( IPalette palette ) : ButtonCheckState
palette IPalette Palette to use for inheriting values.
리턴 ButtonCheckState

GetColorMap() 공개 메소드

Gets the color to remap from the image to the container foreground.
public GetColorMap ( IPalette palette ) : Color
palette IPalette Palette to use for inheriting values.
리턴 Color

GetEdge() 공개 메소드

Gets the edge for the button.
public GetEdge ( IPalette palette ) : RelativeEdgeAlign
palette IPalette Palette to use for inheriting values.
리턴 RelativeEdgeAlign

GetEnabled() 공개 추상적인 메소드

Gets the button enabled state.
public abstract GetEnabled ( IPalette palette ) : ButtonEnabled
palette IPalette Palette to use for inheriting values.
리턴 ButtonEnabled

GetImage() 공개 메소드

Gets the button image.
public GetImage ( IPalette palette, PaletteState state ) : Image
palette IPalette Palette to use for inheriting values.
state PaletteState State for which an image is needed.
리턴 Image

GetImageTransparentColor() 공개 메소드

Gets the image transparent color.
public GetImageTransparentColor ( IPalette palette ) : Color
palette IPalette Palette to use for inheriting values.
리턴 Color

GetLocation() 공개 메소드

Gets the button location.
public GetLocation ( IPalette palette ) : HeaderLocation
palette IPalette Palette to use for inheriting values.
리턴 HeaderLocation

GetLongText() 공개 메소드

Gets the button long text.
public GetLongText ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
리턴 string

GetOrientation() 공개 메소드

Gets the button orienation.
public GetOrientation ( IPalette palette ) : ButtonOrientation
palette IPalette Palette to use for inheriting values.
리턴 ButtonOrientation

GetShortText() 공개 메소드

Gets the button short text.
public GetShortText ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
리턴 string

GetStyle() 공개 메소드

Gets the button style.
public GetStyle ( IPalette palette ) : ButtonStyle
palette IPalette Palette to use for inheriting values.
리턴 ButtonStyle

GetToolTipTitle() 공개 메소드

Gets the button tooltip title text.
public GetToolTipTitle ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
리턴 string

GetView() 공개 메소드

Get the current view associated with the button spec.
public GetView ( ) : ViewBase
리턴 ViewBase

GetViewEnabled() 공개 메소드

Gets a value indicating if the associated view is enabled.
public GetViewEnabled ( ) : bool
리턴 bool

GetVisible() 공개 추상적인 메소드

Gets the button visible value.
public abstract GetVisible ( IPalette palette ) : bool
palette IPalette Palette to use for inheriting values.
리턴 bool

OnButtonSpecPropertyChanged() 보호된 메소드

Raises the ButtonSpecPropertyChanged event.
protected OnButtonSpecPropertyChanged ( string propertyName ) : void
propertyName string Name of the appearance property that has changed.
리턴 void

OnClick() 보호된 메소드

Raises the Click event.
protected OnClick ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
리턴 void

OnCommandPropertyChanged() 보호된 메소드

Handles a change in the property of an attached command.
protected OnCommandPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
sender object Source of the event.
e System.ComponentModel.PropertyChangedEventArgs A PropertyChangedEventArgs that contains the event data.
리턴 void

PerformClick() 공개 메소드

Generates a Click event for the control.
public PerformClick ( ) : void
리턴 void

PerformClick() 공개 메소드

Generates a Click event for the control.
public PerformClick ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
리턴 void

ResetAllowInheritExtraText() 공개 메소드

Resets the AllowInheritExtraText property to its default value.
public ResetAllowInheritExtraText ( ) : void
리턴 void

ResetAllowInheritImage() 공개 메소드

Resets the AllowInheritImage property to its default value.
public ResetAllowInheritImage ( ) : void
리턴 void

ResetAllowInheritText() 공개 메소드

Resets the AllowInheritText property to its default value.
public ResetAllowInheritText ( ) : void
리턴 void

ResetAllowInheritToolTipTitle() 공개 메소드

Resets the AllowInheritToolTipTitle property to its default value.
public ResetAllowInheritToolTipTitle ( ) : void
리턴 void

ResetColorMap() 공개 메소드

Resets the ColorMap property to its default value.
public ResetColorMap ( ) : void
리턴 void

ResetExtraText() 공개 메소드

Resets the ExtraText property to its default value.
public ResetExtraText ( ) : void
리턴 void

ResetImage() 공개 메소드

Resets the Image property to its default value.
public ResetImage ( ) : void
리턴 void

ResetImageTransparentColor() 공개 메소드

Resets the ImageTransparentColor property to its default value.
public ResetImageTransparentColor ( ) : void
리턴 void

ResetOrientation() 공개 메소드

Resets the Orientation property to its default value.
public ResetOrientation ( ) : void
리턴 void

ResetStyle() 공개 메소드

Resets the Style property to its default value.
public ResetStyle ( ) : void
리턴 void

ResetText() 공개 메소드

Resets the Text property to its default value.
public ResetText ( ) : void
리턴 void

ResetToolTipBody() 공개 메소드

Resets the ToolTipBody property to its default value.
public ResetToolTipBody ( ) : void
리턴 void

ResetToolTipImage() 공개 메소드

Resets the ToolTipImage property to its default value.
public ResetToolTipImage ( ) : void
리턴 void

ResetToolTipImageTransparentColor() 공개 메소드

Resets the ToolTipImageTransparentColor property to its default value.
public ResetToolTipImageTransparentColor ( ) : void
리턴 void

ResetToolTipStyle() 공개 메소드

Resets the ToolTipStyle property to its default value.
public ResetToolTipStyle ( ) : void
리턴 void

ResetToolTipTitle() 공개 메소드

Resets the ToolTipTitle property to its default value.
public ResetToolTipTitle ( ) : void
리턴 void

ResetUniqueName() 공개 메소드

Resets the UniqueName property to its default value.
public ResetUniqueName ( ) : void
리턴 void

SetView() 공개 메소드

Sets the current view associated with the button spec.
public SetView ( ViewBase view ) : void
view ViewBase View element reference.
리턴 void

ToString() 공개 메소드

Returns a string that represents the current defaulted state.
public ToString ( ) : string
리턴 string