public ListViewSubItem(ListViewItem owner, string text, Color foreColor, Color backColor, Font font) { this._owner = owner; this.text = text; style = new SubItemStyle { foreColor = foreColor, backColor = backColor, font = font }; }
// // End fix for Serialization Breaking change from v1.* to v2.0 // /// <include file='doc\ListViewItem.uex' path='docs/doc[@for="ListViewItem.ListViewSubItem.ResetStyle"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public void ResetStyle() { if (style != null) { style = null; if (owner != null) { owner.InvalidateListView(); } } }
public ListViewSubItem (ListViewItem owner, string text, Color foreColor, Color backColor, Font font) { this.owner = owner; Text = text; this.style = new SubItemStyle (foreColor, backColor, font); }
/// <include file='doc\ListViewItem.uex' path='docs/doc[@for="ListViewItem.ListViewSubItem.ListViewSubItem2"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public ListViewSubItem(ListViewItem owner, string text, Color foreColor, Color backColor, Font font) { this.owner = owner; this.text = text; this.style = new SubItemStyle(); this.style.foreColor = foreColor; this.style.backColor = backColor; this.style.font = font; }
public void ResetStyle() { if (this.style != null) { this.style = null; if (this.owner != null) { this.owner.InvalidateListView(); } } }