Class ComboBoxAdv
Represents a combo box control.
Inheritance
System.Object
ComboBoxAdv
Implements
System.ComponentModel.ISupportInitialize
Assembly: Syncfusion.Tools.Windows.dll
public class ComboBoxAdv : ComboBoxBaseDataBound, IThemedControl, ISupportInitialize, INonClientPaintingSupport, ISupportOffice2007Theme, IThemeProvider, IVisualStyle
Constructors
Declaration
Properties
Gets or sets a value indicating whether a SkinManager theme settings
can be applied to the control.
Declaration
public bool CanApplyTheme { get; set; }
Property Value
Type |
Description |
System.Boolean |
The default value is true.
|
Gets or sets a value indicating whether control elements styles can be overridden by theme style settings.
Declaration
public bool CanOverrideStyle { get; set; }
Property Value
Type |
Description |
System.Boolean |
Default value is false.
|
Update the renderer for VisualStyle based theme and Office2016 theme.
Declaration
protected override ComboBoxAdvRenderer ComboBoxRenderer { get; }
Property Value
Overrides
Gets or sets the DropDown Style
Declaration
public ComboBoxStyle DropDownStyle { get; set; }
Property Value
Type |
System.Windows.Forms.ComboBoxStyle |
Gets or sets the System.Drawing.Font value for the control.
Declaration
public override Font Font { get; set; }
Property Value
Overrides
Gets or sets a value indicating whether show indent for images in combo list box.
Declaration
public bool ForceImageIndent { get; set; }
Property Value
Declaration
public int Height { get; set; }
Property Value
Type |
Description |
System.Int32 |
The height of the ComboBoxAdv in pixels.
|
Declaration
public ImageIndexesCollection ImageIndexes { get; }
Property Value
Declaration
public ImageList ImageList { get; set; }
Property Value
Type |
System.Windows.Forms.ImageList |
Gets or sets the IntegralHeight
Declaration
public override bool IntegralHeight { get; set; }
Property Value
Overrides
Gets a value indicating whether the visual style based theme is applied to the control.
This also indicates whether the theme files are referred from external assemblies or not.
Declaration
public bool IsVisualStyleEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
Return true, if the visual style based theme is applied to control. Otherwise returns false.
|
Gets the collection of Items
Declaration
public override ComboBoxBaseDataBound.ObjectCollection Items { get; }
Property Value
Overrides
Gets collection of image indexes.
Declaration
public ComboBoxAdv.ImageIndexItemCollection ItemsImageIndexes { get; }
Property Value
Gets the ListBox associated with this combo.
Declaration
public virtual ListBox ListBox { get; }
Property Value
Type |
System.Windows.Forms.ListBox |
Gets or sets Office 2007 color scheme.
Declaration
public Office2007Theme Office2007ColorTheme { get; set; }
Property Value
Gets or sets Office 2010 color scheme.
Declaration
public Office2010Theme Office2010ColorTheme { get; set; }
Property Value
ShowImageInTextBox
Gets or sets a value indicating whether draw selected item image in text box.
Declaration
public bool ShowImageInTextBox { get; set; }
Property Value
Gets or sets a value indicating whether draw images in combo list box.
Declaration
public bool ShowImagesInComboListBox { get; set; }
Property Value
Gets or sets an advanced appearance for this control.
Declaration
public VisualStyle Style { get; set; }
Property Value
TextBoxHeight
Gets or sets the textbox height in ComboBoxAdv.
Declaration
public int TextBoxHeight { get; set; }
Property Value
Gets or sets the theme name of the control.
Declaration
public string ThemeName { get; set; }
Property Value
Type |
Description |
System.String |
The default value is null.
|
Declaration
public ComboBoxAdvVisualStyle ThemeStyle { get; set; }
Property Value
Declaration
public bool UseMnemonic { get; set; }
Property Value
Methods
Declaration
protected static double ArgToRadians(long arg)
Parameters
Type |
Name |
Description |
System.Int64 |
arg |
|
Returns
Declaration
protected override void AttachPopupControl()
Overrides
Declaration
protected override Point CorrectPopupLocation(Point location)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
location |
|
Returns
Type |
System.Drawing.Point |
Overrides
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
System.Windows.Forms.AccessibleObject |
Overrides
Declaration
protected override ListControl CreateListControl()
Returns
Type |
System.Windows.Forms.ListControl |
Overrides
CreateTextBox()
Declaration
protected override TextBox CreateTextBox()
Returns
Type |
System.Windows.Forms.TextBox |
Overrides
Declaration
protected override void DetachPopupControl(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
Declaration
protected override void DetermineHeightsBasedOnFont(Graphics g, ref int textAreaHeight)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Int32 |
textAreaHeight |
|
Overrides
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
Paints the DropDownButton in the ComboBoxAdv.
Declaration
protected override void DrawDropDownPortion(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
PaintEventArgs
|
Overrides
Finds the first item in the combo box that starts with the specified string.
Declaration
public override int FindString(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
The string to search for.
|
Returns
Type |
Description |
System.Int32 |
The zero-based index of the first item found; -1 if no match is found.
|
Overrides
Finds the first item after the given index which starts with the given string. The search is not case sensitive.
Declaration
public override int FindString(string s, int startIndex)
Parameters
Type |
Name |
Description |
System.String |
s |
The string to search for.
|
System.Int32 |
startIndex |
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.
|
Returns
Type |
Description |
System.Int32 |
The zero-based index of the first item found; -1 if no match is found.
|
Overrides
Finds the first item in the combo box that matches the specified string.
Declaration
public override int FindStringExact(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
The string to search for.
|
Returns
Type |
Description |
System.Int32 |
The zero-based index of the first item found; returns -1 if no match is found.
|
Overrides
Finds the first item in the combo box that matches the specified string.
Declaration
public override int FindStringExact(string text, bool ignoreCase)
Parameters
Type |
Name |
Description |
System.String |
text |
Text to search.
|
System.Boolean |
ignoreCase |
Indicates whether to ignore case during serach.
|
Returns
Type |
Description |
System.Int32 |
Index of specified text in list; -1, if nothing found.
|
Overrides
Finds the first item after the specified index that matches the specified string.
Declaration
public override int FindStringExact(string s, int startIndex)
Parameters
Type |
Name |
Description |
System.String |
s |
The string to search for.
|
System.Int32 |
startIndex |
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.
|
Returns
Type |
Description |
System.Int32 |
The zero-based index of the first item found; returns -1 if no match is found.
|
Overrides
Returns the active theme name.
Declaration
public string GetActiveThemeName()
Returns
Declaration
protected override void InitListControl(ListControl listControl)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ListControl |
listControl |
|
Overrides
Initialize the ScrollerFrame
Declaration
protected override void InitScrollersFrame()
Overrides
Declaration
protected override void NativeAdd(object item)
Parameters
Type |
Name |
Description |
System.Object |
item |
|
Overrides
Declaration
protected override void NativeClear()
Overrides
Declaration
protected override void NativeInsert(int index, object item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Object |
item |
|
Overrides
Declaration
protected override void NativeRemoveAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Overrides
Declaration
protected override void OnBeforePopup()
Overrides
Declaration
protected override void OnDataManagerPositionChanged()
Overrides
Declaration
protected override void OnDisplayMemberChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected override void OnDropDown(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected override void OnEndInit()
Overrides
Declaration
protected override void OnEnter(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.KeyPressEventArgs |
e |
|
Overrides
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Overrides
Declaration
protected override void OnParentChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnPopupClosed(PopupClosedEventArgs e)
Parameters
Overrides
Declaration
protected override void OnSelectedIndexChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected override void OnStyleChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected virtual void RaiseThemeChanged(object sender, ThemeChangedEventArgs args)
Parameters
Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Windows.Forms.BoundsSpecified |
specified |
|
Overrides
SetTextBoxBounds(Rectangle)
Declaration
protected override void SetTextBoxBounds(Rectangle rect)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
rect |
|
Overrides
Declaration
protected override void ShowPopup()
Overrides
Declaration
protected override void UpdateListBoxBorderStyle()
Overrides
Declaration
protected override void UpdatePopupControlBounds()
Overrides
Declaration
protected override void UpdatePopupControlRelationship()
Overrides
UpdateText(Boolean)
Declaration
public override bool UpdateText(bool fireEvent)
Parameters
Type |
Name |
Description |
System.Boolean |
fireEvent |
|
Returns
Overrides
Declaration
protected override void WndProc(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Overrides
Events
Occurs when theme name of the control has changed.
Declaration
public event ThemeChangedEventHandler ThemeNameChanged
Event Type
Explicit Interface Implementations
Gets or sets the VisualTheme of the control.
Declaration
string IVisualStyle.VisualTheme { get; set; }
Returns
Gets or sets the BaseTheme name of the theme
Declaration
string IThemeProvider.BaseThemeName { get; set; }
Returns
Gets the name of the control.
Declaration
string IThemeProvider.ControlName { get; }
Returns
Implements
System.ComponentModel.ISupportInitialize