C# Class ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupComboBox

Inheritance: KryptonRibbonGroupItem
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

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

Méthodes protégées

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

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

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

FindString() public méthode

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

FindString() public méthode

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

FindStringExact() public méthode

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

FindStringExact() public méthode

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

GetItemHeight() public méthode

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

GetItemText() public méthode

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

Hide() public méthode

Make the ribbon group hidden.
public Hide ( ) : void
Résultat void

KryptonRibbonGroupComboBox() public méthode

Initialise a new instance of the KryptonRibbonGroupComboBox class.
public KryptonRibbonGroupComboBox ( ) : System
Résultat System

OnDataSourceChanged() protected méthode

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

OnDisplayMemberChanged() protected méthode

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

OnDropDown() protected méthode

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

OnDropDownClosed() protected méthode

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

OnDropDownStyleChanged() protected méthode

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

OnFormat() protected méthode

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

OnFormatInfoChanged() protected méthode

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

OnFormatStringChanged() protected méthode

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

OnFormattingEnabledChanged() protected méthode

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

OnGotFocus() protected méthode

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

OnKeyDown() protected méthode

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

OnKeyPress() protected méthode

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

OnKeyUp() protected méthode

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

OnLostFocus() protected méthode

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

OnPreviewKeyDown() protected méthode

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

OnPropertyChanged() protected méthode

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

OnSelectedIndexChanged() protected méthode

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

OnSelectedValueChanged() protected méthode

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

OnSelectionChangeCommitted() protected méthode

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

OnTextUpdate() protected méthode

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

OnValueMemberChanged() protected méthode

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

ResetShortcutKeys() public méthode

Resets the ShortcutKeys property to its default value.
public ResetShortcutKeys ( ) : void
Résultat void

Select() public méthode

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

SelectAll() public méthode

Selects all text in the control.
public SelectAll ( ) : void
Résultat void

Show() public méthode

Make the ribbon group visible.
public Show ( ) : void
Résultat void