Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / PathSegmentCollection.cs / 1 / PathSegmentCollection.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//---------------------------------------------------------------------------
using MS.Internal;
using MS.Internal.PresentationCore;
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
{
///
/// The class definition for PathSegmentCollection
///
[Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)]
public sealed partial class PathSegmentCollection : Animatable, IList, IList
{
///
/// Can serialze "this" to a string.
/// This is true iff every segment is stroked.
///
internal bool CanSerializeToString()
{
bool canSerialize = true;
for (int i=0; i<_collection.Count; i++)
{
if (!_collection[i].IsStroked)
{
canSerialize = false;
break;
}
}
return canSerialize;
}
///
/// Creates a string representation of this object based on the format string
/// and IFormatProvider passed in.
/// If the provider is null, the CurrentCulture is used.
/// See the documentation for IFormattable for more information.
///
///
/// A string representation of this object.
///
internal string ConvertToString(string format, IFormatProvider provider)
{
if (_collection.Count == 0)
{
return String.Empty;
}
StringBuilder str = new StringBuilder();
char separator = MS.Internal.TokenizerHelper.GetNumericListSeparator(provider);
for (int i=0; i<_collection.Count; i++)
{
str.Append(_collection[i].ConvertToString(format, provider));
}
return str.ToString();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegexGroup.cs
- SimpleExpression.cs
- InternalsVisibleToAttribute.cs
- AppearanceEditorPart.cs
- PrimitiveDataContract.cs
- TableRowCollection.cs
- CorrelationInitializer.cs
- WarningException.cs
- ReferencedAssembly.cs
- Function.cs
- Enumerable.cs
- CanonicalXml.cs
- TextMarkerSource.cs
- CharAnimationUsingKeyFrames.cs
- ControlAdapter.cs
- DataGridSortCommandEventArgs.cs
- ObjectToken.cs
- EncryptedHeader.cs
- NonBatchDirectoryCompiler.cs
- ISFTagAndGuidCache.cs
- RectAnimationClockResource.cs
- Line.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- RegistryPermission.cs
- RSAPKCS1SignatureDeformatter.cs
- Vector.cs
- UpdatePanelTriggerCollection.cs
- DesigntimeLicenseContext.cs
- FullTextState.cs
- TableItemStyle.cs
- PersistNameAttribute.cs
- SystemWebExtensionsSectionGroup.cs
- LogicalExpr.cs
- TextModifier.cs
- DockingAttribute.cs
- VisualBrush.cs
- EventSource.cs
- StoreContentChangedEventArgs.cs
- ReferenceConverter.cs
- MenuItemStyleCollection.cs
- HtmlLink.cs
- StrongNameUtility.cs
- XmlDataSource.cs
- SafeArrayRankMismatchException.cs
- CompatibleIComparer.cs
- VarRefManager.cs
- Int32.cs
- BitHelper.cs
- SchemaSetCompiler.cs
- Suspend.cs
- BezierSegment.cs
- Codec.cs
- AutomationProperty.cs
- NamedPipeAppDomainProtocolHandler.cs
- PerformanceCounterPermissionAttribute.cs
- CompensateDesigner.cs
- XmlSignatureManifest.cs
- PolyQuadraticBezierSegment.cs
- RootBrowserWindow.cs
- PointLightBase.cs
- Variable.cs
- MergeExecutor.cs
- TextChange.cs
- RestHandlerFactory.cs
- TableHeaderCell.cs
- HtmlInputCheckBox.cs
- _SslState.cs
- PipelineModuleStepContainer.cs
- RsaSecurityTokenAuthenticator.cs
- DbConnectionPoolGroup.cs
- EdmComplexPropertyAttribute.cs
- ScriptingAuthenticationServiceSection.cs
- DesignerSerializerAttribute.cs
- Track.cs
- SocketAddress.cs
- DataSvcMapFile.cs
- SerialPort.cs
- MtomMessageEncodingElement.cs
- HideDisabledControlAdapter.cs
- CommonXSendMessage.cs
- X509Extension.cs
- PreviewPageInfo.cs
- DataSourceHelper.cs
- _FixedSizeReader.cs
- pingexception.cs
- RowBinding.cs
- AssemblyAttributesGoHere.cs
- AudioBase.cs
- NeutralResourcesLanguageAttribute.cs
- WindowsNonControl.cs
- ArgumentOutOfRangeException.cs
- ArrayConverter.cs
- COM2FontConverter.cs
- PublishLicense.cs
- SecurityCredentialsManager.cs
- Control.cs
- Common.cs
- DataGridViewRowsAddedEventArgs.cs
- PermissionAttributes.cs
- GeometryModel3D.cs