internal System.Windows.Forms.NativeMethods.TCITEM_T GetTCITEM() { System.Windows.Forms.NativeMethods.TCITEM_T tcitem_t = new System.Windows.Forms.NativeMethods.TCITEM_T { mask = 0, pszText = null, cchTextMax = 0, lParam = IntPtr.Zero }; string text = this.Text; this.PrefixAmpersands(ref text); if (text != null) { tcitem_t.mask |= 1; tcitem_t.pszText = text; tcitem_t.cchTextMax = text.Length; } int imageIndex = this.ImageIndex; tcitem_t.mask |= 2; tcitem_t.iImage = this.ImageIndexer.ActualIndex; return(tcitem_t); }
internal System.Windows.Forms.NativeMethods.TCITEM_T GetTCITEM() { System.Windows.Forms.NativeMethods.TCITEM_T tcitem_t = new System.Windows.Forms.NativeMethods.TCITEM_T { mask = 0, pszText = null, cchTextMax = 0, lParam = IntPtr.Zero }; string text = this.Text; this.PrefixAmpersands(ref text); if (text != null) { tcitem_t.mask |= 1; tcitem_t.pszText = text; tcitem_t.cchTextMax = text.Length; } int imageIndex = this.ImageIndex; tcitem_t.mask |= 2; tcitem_t.iImage = this.ImageIndexer.ActualIndex; return tcitem_t; }