예제 #1
0
 /// <summary>
 /// Clones every member
 /// </summary>
 /// <param name="group">Destination group</param>
 protected void CloneMembers(OutlookGridDefaultGroup group)
 {
     group.column    = column;
     group.val       = val;
     group.collapsed = collapsed;
     //group.text = this.text;
     group.height                 = height;
     group.groupImage             = groupImage;
     group.formatStyle            = formatStyle;
     group.xXXItemsText           = XXXItemsText;
     group.oneItemText            = OneItemText;
     group.allowHiddenWhenGrouped = allowHiddenWhenGrouped;
     group.sortBySummaryCount     = sortBySummaryCount;
     group.back              = new PaletteBack(null, null);
     group.back.Color1       = Back.Color1;
     group.back.Color2       = Back.Color2;
     group.back.ColorAlign   = Back.ColorAlign;
     group.back.ColorAngle   = Back.ColorAngle;
     group.back.ColorStyle   = Back.ColorStyle;
     group.back.Draw         = Back.Draw;
     group.back.GraphicsHint = Back.GraphicsHint;
     group.back.Image        = Back.Image;
     group.back.ImageAlign   = Back.ImageAlign;
     group.back.ImageStyle   = Back.ImageStyle;
 }
예제 #2
0
        /// <summary>
        /// Overrides the Clone() function
        /// </summary>
        /// <returns>OutlookgGridDefaultGroup</returns>
        public virtual object Clone()
        {
            OutlookGridDefaultGroup gr = new OutlookGridDefaultGroup(parentGroup);

            CloneMembers(gr);
            return(gr);
        }