コード例 #1
0
        public override HashtableElement Clone(WeakHashtable parentCollection)
        {
            CellStyleData data1 = new CellStyleData((CellStyleCachedCollection)parentCollection, false);

            data1.HorizontalAlignment    = this.HorizontalAlignment;
            data1.VerticalAlignment      = this.VerticalAlignment;
            data1.PatternStyle           = this.PatternStyle;
            data1.PatternBackgroundColor = this.PatternBackgroundColor;
            data1.PatternForegroundColor = this.PatternForegroundColor;
            data1.Indent        = this.Indent;
            data1.Rotation      = this.Rotation;
            data1.Locked        = this.Locked;
            data1.FormulaHidden = this.FormulaHidden;
            data1.WrapText      = this.WrapText;
            data1.ShrinkToFit   = this.ShrinkToFit;
            data1.NumberFormat  = this.NumberFormat;
            data1.FontData      = new ExcelFontData(this.FontData);
            data1.BorderColor   = (Color[])this.BorderColor.Clone();
            data1.BorderStyle   = (LineStyle[])this.BorderStyle.Clone();
            data1.BordersUsed   = this.BordersUsed;
            return(data1);
        }
コード例 #2
0
 // Methods
 public WeekReferenceWithHash(WeakHashtable parent, HashtableElement target) : base(target)
 {
     this.parent = parent;
     this.hash   = target.GetHashCode();
 }
コード例 #3
0
 public virtual HashtableElement Clone(WeakHashtable parentCollection)
 {
     throw new Exception("Internal: Must override Clone() in derived class");
 }
コード例 #4
0
 // Methods
 public HashtableElement(WeakHashtable parentCollection, bool isInCache)
 {
     this.parentCollection = parentCollection;
     this.isInCache        = isInCache;
 }