/// <summary> /// Recalculates the automatic size of the <see cref="Cell"/>s in this <see cref="Column"/>. /// </summary> public virtual void AutoSize() { this.Width = new ColumnWidth(this.ActualWidth); this.Width = new ColumnWidth(SizeMode.Auto); }
/// <summary> /// Determines whether this <see cref="ColumnWidth"/> objects is equal to the specified other <see cref="ColumnWidth"/>. /// </summary> /// <param name="other">The other.</param> /// <returns></returns> public bool Equals(ColumnWidth other) { base.Equals(other); return other.Value == this.Value && Equals(other.SizeMode, this.SizeMode); }