private void SuspendRedraw(ItemTemplate it) { if ((it != null) && (it != this.m_Owner)) { throw new ArgumentException("Cell is already part of other ItemTemplate"); } if (this.m_Owner.Parent != null) { this.m_Owner.Parent.SuspendRedraw(); } }
public virtual ItemTemplate Clone() { ItemTemplate template = new ItemTemplate(); foreach (Cell cell in this.m_CellTemplates) { template.CellTemplates.Add(cell.Clone()); } template.BackColor = this.BackColor; template.ForeColor = this.ForeColor; template.GradientBackColor = new GradientColor(this.GradientBackColor.StartColor, this.GradientBackColor.MiddleColor1, this.GradientBackColor.MiddleColor2, this.GradientBackColor.EndColor, this.GradientBackColor.FillDirection); template.GradientBackColor.PropertyChanged += new EventHandler(this.m_gradientBackColor_PropertyChanged); template.UseGradient = this.UseGradient; template.Height = this.Height; template.Name = this.Name; return template; }
public CellCollection(ItemTemplate it) { this.m_Owner = it; }
private ItemTemplate ReadItemTemplate(XmlReader reader) { ItemTemplate o = new ItemTemplate(); if (this._designTimeCallback != null) { this._designTimeCallback(o, null); } o.Name = reader["Name"]; try { string str = reader["Height"]; if (str != null) { o.Height = Convert.ToInt32(str); } } catch { } if (!reader.IsEmptyElement) { Label_011E: if (!reader.Read()) { return o; } try { string str2; if (((str2 = reader.Name) == null) || (str2 == "")) { goto Label_011E; } if (!(str2 == "ItemTemplate")) { if (str2 == "Cell") { goto Label_00A6; } if (str2 == "Property") { goto Label_00BB; } goto Label_0101; } return o; Label_00A6: o.CellTemplates.Add(this.ReadCell(reader)); goto Label_011E; Label_00BB: if ((reader.HasAttributes && (reader["Name"] != null)) && (reader["Value"] != null)) { this.m_conversion.SetProperty(o, reader["Name"], reader["Value"]); } goto Label_011E; Label_0101: this.m_conversion.SetProperty(o, reader.Name, reader.ReadString()); } catch { } goto Label_011E; } return o; }
internal void ResetCachedBounds(ItemTemplate it) { foreach (ListItem item in base.List) { if ((it == null) || (item.Template == it)) { item.ResetCachedBounds(); } } }
public void Insert(int index, ItemTemplate value) { base.List.Insert(index, value); }
public int IndexOf(ItemTemplate value) { return(base.List.IndexOf(value)); }
public bool Contains(ItemTemplate value) { return(base.List.Contains(value)); }
public int Add(ItemTemplate value) { return(base.List.Add(value)); }
public void Remove(ItemTemplate value) { base.List.Remove(value); }