Example #1
0
        public ViewerStyle Clone()
        {
            ViewerStyle viewerStyle = new ViewerStyle(this.StyleId);

            viewerStyle.ParentId = this.ParentId;
            foreach (ViewerAttribute viewerAttribute in this.Attributes)
            {
                viewerStyle.Attributes.Add(viewerAttribute.Clone());
            }
            return(viewerStyle);
        }
 /// <summary>
 /// Construct a list of attributes associated with the ViewerStyle.
 /// </summary>
 /// <param name="viewerStyle">The style that owns the attributes.</param>
 public ViewerAttributeList(ViewerStyle viewerStyle)
 {
     // Initialize the object.
     this.viewerStyle = viewerStyle;
 }