public ListViewHitTestInfo(ListViewItem hitItem, ListViewItem.ListViewSubItem hitSubItem, ListViewHitTestLocations hitLocation) { item = hitItem; subItem = hitSubItem; location = hitLocation; }
public OlvListViewHitTestInfo(ListViewHitTestInfo hti) { this.item = (OLVListItem)hti.Item; this.subItem = (OLVListSubItem)hti.SubItem; this.location = hti.Location; switch (hti.Location) { case ListViewHitTestLocations.Image: this.HitTestLocation = BrightIdeasSoftware.HitTestLocation.Image; return; case ListViewHitTestLocations.Label: this.HitTestLocation = BrightIdeasSoftware.HitTestLocation.Text; return; case ListViewHitTestLocations.StateImage: this.HitTestLocation = BrightIdeasSoftware.HitTestLocation.CheckBox; return; } this.HitTestLocation = BrightIdeasSoftware.HitTestLocation.Nothing; }
// Constructors public ListViewHitTestInfo(ListViewItem hitItem, ListViewSubItem hitSubItem, ListViewHitTestLocations hitLocation) { }
public ListViewHitTestInfo(ListViewItem hitItem, ListViewItem.ListViewSubItem hitSubItem, ListViewHitTestLocations hitLocation) { this.item = hitItem; this.subItem = hitSubItem; this.loc = hitLocation; }
public void ListViewHitTestInfo_Ctor_ListViewItem_ListViewSubItem_ListViewHitTestLocations(ListViewItem hitItem, ListViewItem.ListViewSubItem hitSubItem, ListViewHitTestLocations hitTestLocations) { var info = new ListViewHitTestInfo(hitItem, hitSubItem, hitTestLocations); Assert.Equal(hitItem, info.Item); Assert.Equal(hitSubItem, info.SubItem); Assert.Equal(hitTestLocations, info.Location); }
/// <summary> /// Create a OlvListViewHitTestInfo /// </summary> public OlvListViewHitTestInfo(OLVListItem olvListItem, OLVListSubItem subItem, int flags, OLVGroup group) { this.item = olvListItem; this.subItem = subItem; this.location = ConvertNativeFlagsToDotNetLocation(olvListItem, flags); this.HitTestLocationEx = (HitTestLocationEx)flags; this.Group = group; switch (location) { case ListViewHitTestLocations.StateImage: this.HitTestLocation = HitTestLocation.CheckBox; break; case ListViewHitTestLocations.Image: this.HitTestLocation = HitTestLocation.Image; break; case ListViewHitTestLocations.Label: this.HitTestLocation = HitTestLocation.Text; break; default: if ((this.HitTestLocationEx & HitTestLocationEx.LVHT_EX_GROUP_COLLAPSE) == HitTestLocationEx.LVHT_EX_GROUP_COLLAPSE) this.HitTestLocation = HitTestLocation.GroupExpander; else if ((this.HitTestLocationEx & HitTestLocationEx.LVHT_EX_GROUP_MINUS_FOOTER_AND_BKGRD) != 0) this.HitTestLocation = HitTestLocation.Group; else this.HitTestLocation = HitTestLocation.Nothing; break; } }
/// <summary> /// Creates a ListViewHitTestInfo instance. /// </summary> public ListViewHitTestInfo(ListViewItem?hitItem, ListViewItem.ListViewSubItem?hitSubItem, ListViewHitTestLocations hitLocation) { Item = hitItem; SubItem = hitSubItem; Location = hitLocation; }
public ListViewHitTestInfo2(ListViewItem hitItem, ListViewItem.ListViewSubItem hitSubItem, int columnIndex, ListViewHitTestLocations hitLocation) : base(hitItem, hitSubItem, hitLocation) { this.ColumnIndex = columnIndex; }
// Constructors public ListViewHitTestInfo(ListViewItem hitItem, ListViewSubItem hitSubItem, ListViewHitTestLocations hitLocation) {}
public ListViewHitTestInfo(ListViewItem hitItem, ListViewItem.ListViewSubItem hitSubItem, ListViewHitTestLocations hitLocation) { throw null; }