Friday, February 13, 2015

FlexListItem


FlexListItem class
Represents a selection item for FlexToolBarComboBox and FlexListBox.
Examples
public class MyComboBox : FlexToolBarComboBox
{
protected override void OnInitialized(EventArgs e)
{
foreach (FontFamily font in Fonts.SystemFontFamilies)
{
string csFontName = font.ToString();
FlexListItem item = new FlexListItem(csFontName);
this.AddItem(item);
}

if (this.Items.Count() > 0)
{
this.SelectedIndex = 0;
}
}
 
§  Constructors
1)  public FlexListItem()
Remarks
Initialize a new instance of FlexListItem
2)  public FlexListItem(
string csText)
Remarks
Initialize a new instance of FlexListItem with item’s text. 
§  Members
1)  public virtual Rect Bounds { get; }
Remarks
Retrieve both the size and the location of the selection item, in pixels, relative to its parent.
2)  public virtual Rect BoundsAtMDIFrame { get; }
Remarks
Retrieve both the size and the location of the selection item, in pixels, relative to MDI frame.
3)  public virtual bool Checked { get; set; }
Remarks
True, if the item is checked; otherwise, false.
4)  public long ID { get; set; }               
Remarks
The  object ID. Default is -1.
5)  public virtual ImageSource Image { get; set; }
Remarks
Gets or sets the image that associated to the selection item.
6)  public virtual bool Selected { get; set; }
Remarks
True, if the item is selected; otherwise, false.
7)  public virtual string Text { get; set; }
Remarks
Gets or sets the text of the item.
§  Methods
1)  public virtual bool HitTest()                 
Remarks
Test whether the current cursor is inside this selection item.
2)  public bool HitTestCheckBox()                 
Remarks
Test whether the current cursor is inside the check box area of this selection item.
§  Events
1)     public event CheckedEventhandler CheckedEvent              
Remarks
This event is fired when the Checked status is changed.  
2)     public event SelectedEventhandler SelectedEvent              
Remarks
This event is fired when the Selected status is changed.  


Reference:
Features,
FlexToolBarComboBox,
How To,
Index,
Instruction,

No comments:

Post a Comment