Class VisualItem
This class helps to render visual item in combobox
Inheritance
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class VisualItem : Control
Constructors
VisualItem()
Declaration
public VisualItem()
Fields
CloseRectangle
Gets/Sets Close button rectangle
Declaration
public Rectangle CloseRectangle
Field Value
Type |
---|
System.Drawing.Rectangle |
m_MultiSelectionEnabled
Hold MultiSelection is enabled or not
Declaration
public bool m_MultiSelectionEnabled
Field Value
Type |
---|
System.Boolean |
m_Selected
Hold if Visual Item is Selected
Declaration
public bool m_Selected
Field Value
Type |
---|
System.Boolean |
m_SelectionColor
Hold Selection Color
Declaration
public Color m_SelectionColor
Field Value
Type |
---|
System.Drawing.Color |
Properties
BorderColor
Gets/Sets VisualItem border Color
Declaration
public Color BorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ButtonEditParent
The ButtonEditParent that needs to be notified of changes.
Declaration
public IButtonEditParent ButtonEditParent { get; set; }
Property Value
Type |
---|
IButtonEditParent |
CloseButtonImage
Gets/Sets Close Button Image in Visual Item
Declaration
public Image CloseButtonImage { get; set; }
Property Value
Type |
---|
System.Drawing.Image |
Cursor
Gets/Sets Visual Item Cursor
Declaration
public override Cursor Cursor { get; }
Property Value
Type |
---|
System.Windows.Forms.Cursor |
DisplayMemberValue
Gets the SelectedItem Value in MultiSelectionComboBox
Declaration
public string DisplayMemberValue { get; }
Property Value
Type |
---|
System.String |
IsSelected
Gets/Sets Whether Visual Item is selected or not
Declaration
public bool IsSelected { get; set; }
Property Value
Type |
---|
System.Boolean |
MultiSelectionEnabled
Gets/Sets whether MultiSelection is Enabled or not
Declaration
public bool MultiSelectionEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
RowIndex
Gets/Sets the Row Index
Declaration
public int RowIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
SelectionColor
Gets/Sets Visual Item Selection Color
Declaration
public Color SelectionColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
SelectionForeColor
Gets/Sets Selected VisualItem ForeColor
Declaration
public Color SelectionForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Text
Gets/Sets VisualItem Text
Declaration
public override string Text { get; set; }
Property Value
Type |
---|
System.String |
ValueMemberValue
Gets the SelectedValue in MultiSelectionComboBox
Declaration
public string ValueMemberValue { get; }
Property Value
Type |
---|
System.String |
Methods
Dispose(Boolean)
Dispose event
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnLocationChanged(EventArgs)
Occurs on location changed
Declaration
protected override void OnLocationChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnMouseDown(MouseEventArgs)
Occurs on Mouse Down
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
OnMouseMove(MouseEventArgs)
Occurs on Mouse move
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
OnPaint(PaintEventArgs)
Occurs on paint event
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e |
OnSizeChanged(EventArgs)
Occurs on Size Changes
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnTextChanged(EventArgs)
Declaration
protected override void OnTextChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
RaiseCloseButtonClicked()
Need to set this as internal
Declaration
public void RaiseCloseButtonClicked()
Events
CloseButtonClicked
This event will be Triggered once Close Button is clicked
Declaration
public event EventHandler CloseButtonClicked
Event Type
Type |
---|
System.EventHandler |
CloseButtonHovered
This event will be Triggered once Close Button is Hovered
Declaration
public event EventHandler CloseButtonHovered
Event Type
Type |
---|
System.EventHandler |