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

Create and manage the view for a ButtonSpec definition.
상속: GlobalId, IContentValues
파일 보기 프로젝트 열기: ComponentFactory/Krypton 1 사용 예제들

공개 메소드들

메소드 설명
ButtonSpecView ( PaletteRedirect redirector, IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, ButtonSpecManagerBase manager, ButtonSpec buttonSpec ) : System

Initialize a new instance of the ButtonSpecView class.

CreateController ( ViewDrawButton viewButton, NeedPaintHandler needPaint, MouseEventHandler clickHandler ) : ButtonSpecViewControllers

Create a button controller for the view.

Destruct ( ) : void

Destruct the previously created views.

GetImage ( PaletteState state ) : Image

Gets the content image.

GetImageTransparentColor ( PaletteState state ) : Color

Gets the content image transparent color.

GetLongText ( ) : string

Gets the content long text.

GetShortText ( ) : string

Gets the content short text.

PerformNeedPaint ( bool needLayout ) : void

Requests a repaint and optional layout be performed.

UpdateButtonStyle ( ) : void

Update the button style to reflect new button style setting.

UpdateChecked ( ) : bool

Update view button to reflect new button checked setting.

UpdateEnabled ( ) : bool

Update view button to reflect new button enabled setting.

UpdateVisible ( ) : bool

Update view button to reflect new button visible setting.

보호된 메소드들

메소드 설명
OnFinishDelegate ( object sender, EventArgs e ) : void

Processes the finish of the button being pressed.

비공개 메소드들

메소드 설명
OnClick ( object sender, MouseEventArgs e ) : void
OnKryptonContextMenuClosed ( object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e ) : void
OnNeedPaint ( object sender, NeedLayoutEventArgs e ) : void
OnPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

메소드 상세

ButtonSpecView() 공개 메소드

Initialize a new instance of the ButtonSpecView class.
public ButtonSpecView ( PaletteRedirect redirector, IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, ButtonSpecManagerBase manager, ButtonSpec buttonSpec ) : System
redirector PaletteRedirect Palette redirector.
paletteMetric IPaletteMetric Source for metric values.
metricPadding PaletteMetricPadding Padding metric for border padding.
manager ButtonSpecManagerBase Reference to owning manager.
buttonSpec ButtonSpec Access
리턴 System

CreateController() 공개 메소드

Create a button controller for the view.
public CreateController ( ViewDrawButton viewButton, NeedPaintHandler needPaint, MouseEventHandler clickHandler ) : ButtonSpecViewControllers
viewButton ViewDrawButton View to be controlled.
needPaint NeedPaintHandler Paint delegate.
clickHandler MouseEventHandler Reference to click handler.
리턴 ButtonSpecViewControllers

Destruct() 공개 메소드

Destruct the previously created views.
public Destruct ( ) : void
리턴 void

GetImage() 공개 메소드

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

GetImageTransparentColor() 공개 메소드

Gets the content image transparent color.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image color is needed.
리턴 Color

GetLongText() 공개 메소드

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

GetShortText() 공개 메소드

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

OnFinishDelegate() 보호된 메소드

Processes the finish of the button being pressed.
protected OnFinishDelegate ( object sender, EventArgs e ) : void
sender object Source of the event.
e System.EventArgs An EventArgs that contains the event data.
리턴 void

PerformNeedPaint() 공개 메소드

Requests a repaint and optional layout be performed.
public PerformNeedPaint ( bool needLayout ) : void
needLayout bool Does the palette change require a layout.
리턴 void

UpdateButtonStyle() 공개 메소드

Update the button style to reflect new button style setting.
public UpdateButtonStyle ( ) : void
리턴 void

UpdateChecked() 공개 메소드

Update view button to reflect new button checked setting.
public UpdateChecked ( ) : bool
리턴 bool

UpdateEnabled() 공개 메소드

Update view button to reflect new button enabled setting.
public UpdateEnabled ( ) : bool
리턴 bool

UpdateVisible() 공개 메소드

Update view button to reflect new button visible setting.
public UpdateVisible ( ) : bool
리턴 bool