Esempio n. 1
0
 /**
  * Constructs a RtfBorderGroup based on another RtfBorderGroup.
  *
  * @param doc The RtfDocument this RtfBorderGroup belongs to
  * @param borderType The type of borders this RtfBorderGroup contains
  * @param borderGroup The RtfBorderGroup to use as a base
  */
 protected internal RtfBorderGroup(RtfDocument doc, int borderType, RtfBorderGroup borderGroup) : base(doc)
 {
     this.borders    = new Hashtable();
     this.borderType = borderType;
     if (borderGroup != null)
     {
         foreach (DictionaryEntry entry in borderGroup.GetBorders())
         {
             int       borderPos = (int)entry.Key;
             RtfBorder border    = (RtfBorder)entry.Value;
             this.borders[borderPos] = new RtfBorder(this.document, this.borderType, border);
         }
     }
 }