C# Class ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupComboBox

Inheritance: KryptonRibbonGroupItem
Mostra file Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
CreateView ViewBase
MonitorControl void
OnComboBoxDataSourceChanged void
OnComboBoxDisplayMemberChanged void
OnComboBoxDropDown void
OnComboBoxDropDownClosed void
OnComboBoxDropDownStyleChanged void
OnComboBoxFormat void
OnComboBoxFormatInfoChanged void
OnComboBoxFormatStringChanged void
OnComboBoxFormattingEnabledChanged void
OnComboBoxGotFocus void
OnComboBoxKeyDown void
OnComboBoxKeyPress void
OnComboBoxKeyUp void
OnComboBoxLostFocus void
OnComboBoxPreviewKeyDown void
OnComboBoxSelectedIndexChanged void
OnComboBoxSelectedValueChanged void
OnComboBoxSelectionChangeCommitted void
OnComboBoxTextUpdate void
OnComboBoxValueMemberChanged void
OnControlEnter void
OnControlLeave void
OnDesignTimeContextMenu void
OnPaletteNeedPaint void
OnRibbonPaletteChanged void
ProcessCmdKey bool
ShouldSerializeComboBoxDesigner bool
ShouldSerializeShortcutKeys bool
UnmonitorControl void

Public Methods

Method Description
FindString ( string str ) : int

Finds the first item in the combo box that starts with the specified string.

FindString ( string str, int startIndex ) : int

Finds the first item after the given index which starts with the given string. The search is not case sensitive.

FindStringExact ( string str ) : int

Finds the first item in the combo box that matches the specified string.

FindStringExact ( string str, int startIndex ) : int

Finds the first item after the specified index that matches the specified string.

GetItemHeight ( int index ) : int

Returns the height of an item in the ComboBox.

GetItemText ( object item ) : string

Returns the text representation of the specified item.

Hide ( ) : void

Make the ribbon group hidden.

KryptonRibbonGroupComboBox ( ) : System

Initialise a new instance of the KryptonRibbonGroupComboBox class.

ResetShortcutKeys ( ) : void

Resets the ShortcutKeys property to its default value.

Select ( int start, int length ) : void

Selects a range of text in the control.

SelectAll ( ) : void

Selects all text in the control.

Show ( ) : void

Make the ribbon group visible.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnDataSourceChanged ( EventArgs e ) : void

Raises the DataSourceChanged event.

OnDisplayMemberChanged ( EventArgs e ) : void

Raises the DisplayMemberChanged event.

OnDropDown ( EventArgs e ) : void

Raises the DropDown event.

OnDropDownClosed ( EventArgs e ) : void

Raises the DropDownClosed event.

OnDropDownStyleChanged ( EventArgs e ) : void

Raises the DropDownStyleChanged event.

OnFormat ( EventArgs e ) : void

Raises the Format event.

OnFormatInfoChanged ( EventArgs e ) : void

Raises the FormatInfoChanged event.

OnFormatStringChanged ( EventArgs e ) : void

Raises the FormatStringChanged event.

OnFormattingEnabledChanged ( EventArgs e ) : void

Raises the FormattingEnabledChanged event.

OnGotFocus ( EventArgs e ) : void

Raises the GotFocus event.

OnKeyDown ( KeyEventArgs e ) : void

Raises the KeyDown event.

OnKeyPress ( KeyPressEventArgs e ) : void

Raises the KeyPress event.

OnKeyUp ( KeyEventArgs e ) : void

Raises the KeyUp event.

OnLostFocus ( EventArgs e ) : void

Raises the LostFocus event.

OnPreviewKeyDown ( PreviewKeyDownEventArgs e ) : void

Raises the PreviewKeyDown event.

OnPropertyChanged ( string propertyName ) : void

Raises the PropertyChanged event.

OnSelectedIndexChanged ( EventArgs e ) : void

Raises the SelectedIndexChanged event.

OnSelectedValueChanged ( EventArgs e ) : void

Raises the SelectedValueChanged event.

OnSelectionChangeCommitted ( EventArgs e ) : void

Raises the SelectionChangeCommitted event.

OnTextUpdate ( EventArgs e ) : void

Raises the TextUpdate event.

OnValueMemberChanged ( EventArgs e ) : void

Raises the ValueMemberChanged event.

Private Methods

Method Description
CreateView ( KryptonRibbon ribbon, NeedPaintHandler needPaint ) : ViewBase
MonitorControl ( KryptonComboBox c ) : void
OnComboBoxDataSourceChanged ( object sender, EventArgs e ) : void
OnComboBoxDisplayMemberChanged ( object sender, EventArgs e ) : void
OnComboBoxDropDown ( object sender, EventArgs e ) : void
OnComboBoxDropDownClosed ( object sender, EventArgs e ) : void
OnComboBoxDropDownStyleChanged ( object sender, EventArgs e ) : void
OnComboBoxFormat ( object sender, System.Windows.Forms.ListControlConvertEventArgs e ) : void
OnComboBoxFormatInfoChanged ( object sender, EventArgs e ) : void
OnComboBoxFormatStringChanged ( object sender, EventArgs e ) : void
OnComboBoxFormattingEnabledChanged ( object sender, EventArgs e ) : void
OnComboBoxGotFocus ( object sender, EventArgs e ) : void
OnComboBoxKeyDown ( object sender, KeyEventArgs e ) : void
OnComboBoxKeyPress ( object sender, KeyPressEventArgs e ) : void
OnComboBoxKeyUp ( object sender, KeyEventArgs e ) : void
OnComboBoxLostFocus ( object sender, EventArgs e ) : void
OnComboBoxPreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void
OnComboBoxSelectedIndexChanged ( object sender, EventArgs e ) : void
OnComboBoxSelectedValueChanged ( object sender, EventArgs e ) : void
OnComboBoxSelectionChangeCommitted ( object sender, EventArgs e ) : void
OnComboBoxTextUpdate ( object sender, EventArgs e ) : void
OnComboBoxValueMemberChanged ( object sender, EventArgs e ) : void
OnControlEnter ( object sender, EventArgs e ) : void
OnControlLeave ( object sender, EventArgs e ) : void
OnDesignTimeContextMenu ( MouseEventArgs e ) : void
OnPaletteNeedPaint ( object sender, NeedLayoutEventArgs e ) : void
OnRibbonPaletteChanged ( object sender, EventArgs e ) : void
ProcessCmdKey ( Message &msg, Keys keyData ) : bool
ShouldSerializeComboBoxDesigner ( ) : bool
ShouldSerializeShortcutKeys ( ) : bool
UnmonitorControl ( KryptonComboBox c ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

FindString() public method

Finds the first item in the combo box that starts with the specified string.
public FindString ( string str ) : int
str string The String to search for.
return int

FindString() public method

Finds the first item after the given index which starts with the given string. The search is not case sensitive.
public FindString ( string str, int startIndex ) : int
str string The String to search for.
startIndex int The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the control.
return int

FindStringExact() public method

Finds the first item in the combo box that matches the specified string.
public FindStringExact ( string str ) : int
str string The String to search for.
return int

FindStringExact() public method

Finds the first item after the specified index that matches the specified string.
public FindStringExact ( string str, int startIndex ) : int
str string The String to search for.
startIndex int The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the control.
return int

GetItemHeight() public method

Returns the height of an item in the ComboBox.
public GetItemHeight ( int index ) : int
index int The index of the item to return the height of.
return int

GetItemText() public method

Returns the text representation of the specified item.
public GetItemText ( object item ) : string
item object The object from which to get the contents to display.
return string

Hide() public method

Make the ribbon group hidden.
public Hide ( ) : void
return void

KryptonRibbonGroupComboBox() public method

Initialise a new instance of the KryptonRibbonGroupComboBox class.
public KryptonRibbonGroupComboBox ( ) : System
return System

OnDataSourceChanged() protected method

Raises the DataSourceChanged event.
protected OnDataSourceChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnDisplayMemberChanged() protected method

Raises the DisplayMemberChanged event.
protected OnDisplayMemberChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnDropDown() protected method

Raises the DropDown event.
protected OnDropDown ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnDropDownClosed() protected method

Raises the DropDownClosed event.
protected OnDropDownClosed ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnDropDownStyleChanged() protected method

Raises the DropDownStyleChanged event.
protected OnDropDownStyleChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnFormat() protected method

Raises the Format event.
protected OnFormat ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnFormatInfoChanged() protected method

Raises the FormatInfoChanged event.
protected OnFormatInfoChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnFormatStringChanged() protected method

Raises the FormatStringChanged event.
protected OnFormatStringChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnFormattingEnabledChanged() protected method

Raises the FormattingEnabledChanged event.
protected OnFormattingEnabledChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnGotFocus() protected method

Raises the GotFocus event.
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnKeyDown() protected method

Raises the KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs An KeyEventArgs containing the event data.
return void

OnKeyPress() protected method

Raises the KeyPress event.
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs An KeyPressEventArgs containing the event data.
return void

OnKeyUp() protected method

Raises the KeyUp event.
protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs An KeyEventArgs containing the event data.
return void

OnLostFocus() protected method

Raises the LostFocus event.
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnPreviewKeyDown() protected method

Raises the PreviewKeyDown event.
protected OnPreviewKeyDown ( PreviewKeyDownEventArgs e ) : void
e System.Windows.Forms.PreviewKeyDownEventArgs An PreviewKeyDownEventArgs containing the event data.
return void

OnPropertyChanged() protected method

Raises the PropertyChanged event.
protected OnPropertyChanged ( string propertyName ) : void
propertyName string Name of property that has changed.
return void

OnSelectedIndexChanged() protected method

Raises the SelectedIndexChanged event.
protected OnSelectedIndexChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnSelectedValueChanged() protected method

Raises the SelectedValueChanged event.
protected OnSelectedValueChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnSelectionChangeCommitted() protected method

Raises the SelectionChangeCommitted event.
protected OnSelectionChangeCommitted ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnTextUpdate() protected method

Raises the TextUpdate event.
protected OnTextUpdate ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnValueMemberChanged() protected method

Raises the ValueMemberChanged event.
protected OnValueMemberChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

ResetShortcutKeys() public method

Resets the ShortcutKeys property to its default value.
public ResetShortcutKeys ( ) : void
return void

Select() public method

Selects a range of text in the control.
public Select ( int start, int length ) : void
start int The position of the first character in the current text selection within the text box.
length int The number of characters to select.
return void

SelectAll() public method

Selects all text in the control.
public SelectAll ( ) : void
return void

Show() public method

Make the ribbon group visible.
public Show ( ) : void
return void