Inheritance
System.Object
ComboBoxItemRenderer
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Tools.Windows.dll
public class ComboBoxItemRenderer : BarItemRenderer, IBarItemRenderer, IDisposable, IDropDownItem
Constructors
Declaration
public ComboBoxItemRenderer(IBarRenderer parent)
Parameters
Fields
Used due to ComboDropDown item should be drawn with little left and right margins.
Declaration
protected const int DEF_BORDER_OFFSET = 3
Field Value
Used to correct customization selection rectangle for ComboDropDown items.
Declaration
protected const int DEF_SELECTION_OFFSET = 2
Field Value
Declaration
protected ListBoxContainer listBoxContainer
Field Value
Declaration
protected IPopupChild popupChild
Field Value
Declaration
protected IPopupParent popupParent
Field Value
Properties
Declaration
public override BarItem BarItem { get; set; }
Property Value
Overrides
Declaration
public override RectangleF Bounds { get; set; }
Property Value
Type |
System.Drawing.RectangleF |
Overrides
Declaration
protected ComboBoxBarItem ComboBoxBarItem { get; }
Property Value
Declaration
protected bool IgnoreExternalMouseMessages { get; set; }
Property Value
Declaration
protected bool IsCustomListBox { get; }
Property Value
Declaration
public ListBox ListBox { get; }
Property Value
Type |
System.Windows.Forms.ListBox |
Declaration
public override bool NeedCenterVAlign { get; }
Property Value
Overrides
Declaration
protected virtual Rectangle TextAreaBounds { get; }
Property Value
Type |
System.Drawing.Rectangle |
Methods
Declaration
public virtual void AfterChildClosing()
Declaration
public override void BarItemPropertyChanged(SyncfusionPropertyChangedEventArgs e)
Parameters
Overrides
Declaration
public virtual void ChildClosing(IPopupChild childUI, PopupCloseType popupCloseType)
Parameters
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
Declaration
protected override void DrawBackground(DrawToolbarItemEventArgs drawItemInfo, bool useThemes)
Parameters
Overrides
Declaration
protected override void DrawBorders(DrawToolbarItemEventArgs drawItemInfo, bool useThemes)
Parameters
Overrides
Declaration
public override void DrawSeparator(Graphics g)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
Overrides
DrawTextAndImage(Graphics, RectangleF, Font, Color, Color, DrawItemState)
Declaration
protected override void DrawTextAndImage(Graphics g, RectangleF rectTextAndImage, Font textFont, Color textColor, Color bgColor, DrawItemState state)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.RectangleF |
rectTextAndImage |
|
System.Drawing.Font |
textFont |
|
System.Drawing.Color |
textColor |
|
System.Drawing.Color |
bgColor |
|
System.Windows.Forms.DrawItemState |
state |
|
Overrides
Declaration
protected object FilterItemOnProperty(object item, string field)
Parameters
Type |
Name |
Description |
System.Object |
item |
|
System.String |
field |
|
Returns
Gets color for arrow of the ComboBox button amenably with VisualStyle.
Declaration
protected Color GetArrowColor(string themeName)
Parameters
Type |
Name |
Description |
System.String |
themeName |
|
Returns
Type |
System.Drawing.Color |
Declaration
protected override Color GetBGColor()
Returns
Type |
System.Drawing.Color |
Overrides
Declaration
protected int GetComboBoxDropDownWidth()
Returns
Declaration
protected override ItemState GetDrawState()
Returns
Overrides
Declaration
public static float GetDropDownArrowHeight()
Returns
Declaration
public static float GetDropDownArrowHeight(bool resizeToFit, Rectangle rect)
Parameters
Type |
Name |
Description |
System.Boolean |
resizeToFit |
|
System.Drawing.Rectangle |
rect |
|
Returns
Declaration
public static float GetDropDownArrowWidth()
Returns
Declaration
public static float GetDropDownArrowWidth(bool resizeToFit, Rectangle rect)
Parameters
Type |
Name |
Description |
System.Boolean |
resizeToFit |
|
System.Drawing.Rectangle |
rect |
|
Returns
Declaration
public static Point[] GetDropDownBorderBounds(bool resizeToFit, Rectangle btnBounds)
Parameters
Type |
Name |
Description |
System.Boolean |
resizeToFit |
|
System.Drawing.Rectangle |
btnBounds |
|
Returns
Type |
System.Drawing.Point[] |
Declaration
public static Point[] GetDropDownBorderBounds(Rectangle btnBounds)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
btnBounds |
|
Returns
Type |
System.Drawing.Point[] |
Declaration
public static Point[] GetDropDownBorderBounds(Rectangle btnBounds, int arWidth, int arHeight)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
btnBounds |
|
System.Int32 |
arWidth |
|
System.Int32 |
arHeight |
|
Returns
Type |
System.Drawing.Point[] |
Declaration
protected PopupRelativeAlignment GetFirstAlignPreference()
Returns
Declaration
protected override Color GetForeColorDefault(DrawItemState state)
Parameters
Type |
Name |
Description |
System.Windows.Forms.DrawItemState |
state |
|
Returns
Type |
System.Drawing.Color |
Overrides
Declaration
protected bool GetIsMirrored()
Returns
Declaration
public string GetItemText(object item)
Parameters
Type |
Name |
Description |
System.Object |
item |
|
Returns
Declaration
protected virtual string GetListBoxText()
Returns
Declaration
public virtual Control GetPopupParentControl()
Returns
Type |
System.Windows.Forms.Control |
Declaration
public override SizeF GetPreferredSize(IGraphicsProvider gp)
Parameters
Returns
Type |
System.Drawing.SizeF |
Overrides
Declaration
protected override void HideDropDown()
Overrides
Declaration
protected virtual void InitChoiceList()
Declaration
public virtual bool IsRelatedControl(Control ctl)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
ctl |
|
Returns
Declaration
Returns
Declaration
protected virtual void ListBox_LostFocus(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
Declaration
protected Point OffsetPointByDropDownArea(Point point)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
point |
|
Returns
Type |
System.Drawing.Point |
Declaration
protected virtual void OnEditPartKeyDown(object sender, KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.Windows.Forms.KeyEventArgs |
e |
|
Declaration
public override void OnMouseDown(Point pointMouseDown)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pointMouseDown |
|
Overrides
Declaration
public override void OnMouseMove(Point pointMouseMove)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pointMouseMove |
|
Overrides
Declaration
public override void OnMouseUp(Point pointMouseUp)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pointMouseUp |
|
Overrides
Declaration
public override void OnMouseWheel(bool isUp)
Parameters
Type |
Name |
Description |
System.Boolean |
isUp |
|
Overrides
Process keyboard messages.
Declaration
public override bool ProcessKeyDown(Keys key)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Keys |
key |
|
Returns
Overrides
Declaration
public override bool ShouldDrawText()
Returns
Overrides
Declaration
protected override bool ShowDropDown(Queue pbiQueue)
Parameters
Type |
Name |
Description |
System.Collections.Queue |
pbiQueue |
|
Returns
Overrides
Explicit Interface Implementations
Declaration
Point[] IDropDownItem.GetBorderOverlapCue(PopupRelativeAlignment rAlign)
Parameters
Returns
Type |
System.Drawing.Point[] |
Declaration
Point IDropDownItem.GetLocationForPopupAlignment(PopupRelativeAlignment prevAlign, out PopupRelativeAlignment newAlign)
Parameters
Returns
Type |
System.Drawing.Point |
Implements
System.IDisposable