示例#1
0
 public void CopyToStyleFormats(StyleFormatConditionCollection styles)
 {
     styles.Clear();
     foreach (SerializableFormatCondition serializableFormat in this)
     {
         StyleFormatCondition style = new StyleFormatCondition();
         styles.Add(style);
         serializableFormat.CopyToStyleFormat(style);
     }
 }
示例#2
0
 public void CopyFromStyleFormats(StyleFormatConditionCollection styles)
 {
     Clear();
     foreach (StyleFormatCondition style in styles)
     {
         SerializableFormatCondition serializableFormat = new SerializableFormatCondition();
         serializableFormat.CopyFromStyleFormat(style);
         InnerList.Add(serializableFormat);
     }
 }
 public TreeListFormatConditions(StyleFormatConditionCollection styles)
 {
     _conditions = new SerializableFormatCollection(styles);
 }
示例#4
0
 public SerializableFormatCollection(StyleFormatConditionCollection collection)
 {
     CopyFromStyleFormats(collection);
 }