|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
//
using MS.Internal;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Runtime.InteropServices;
using System.ComponentModel.Design.Serialization;
using System.Text;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Composition;
using System.Windows.Markup;
namespace System.Windows.Media
{
/// <summary>
/// The class definition for PathFigureCollection
/// </summary>
public sealed partial class PathFigureCollection : Animatable, IList, IList<PathFigure>
{
/// <summary>
/// Can serialze "this" to a string. This returns true iff all of the PathFigures in the collection
/// return true from their CanSerializeToString methods.
/// </summary>
internal bool CanSerializeToString()
{
bool canSerializeToString = true;
for (int i=0; (i<_collection.Count) && canSerializeToString; i++)
{
canSerializeToString &= _collection[i].CanSerializeToString();
}
return canSerializeToString;
}
}
}
|