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
- WebPartUtil.cs
- WindowsGraphics2.cs
- QueryTask.cs
- AuthStoreRoleProvider.cs
- TrackingMemoryStreamFactory.cs
- DataBindingCollection.cs
- MarshalDirectiveException.cs
- TypeLibConverter.cs
- MouseDevice.cs
- CopyOnWriteList.cs
- RegistrySecurity.cs
- ToolStripDesigner.cs
- MultipartContentParser.cs
- SortFieldComparer.cs
- SimpleTypesSurrogate.cs
- WindowsGraphics.cs
- ControlDesignerState.cs
- EntitySqlException.cs
- SqlGatherConsumedAliases.cs
- WebPartEditVerb.cs
- DataGridViewAdvancedBorderStyle.cs
- EntityContainer.cs
- ListBindableAttribute.cs
- AssociationType.cs
- SynchronizationContext.cs
- StateMachineAction.cs
- XmlFormatWriterGenerator.cs
- GradientStopCollection.cs
- WebMessageFormatHelper.cs
- UnmanagedMemoryStream.cs
- AvTraceDetails.cs
- WSTrust.cs
- DynamicRenderer.cs
- CodeAttributeDeclaration.cs
- SchemaMapping.cs
- PersonalizationStateInfoCollection.cs
- SymbolMethod.cs
- PasswordBox.cs
- DataGridViewRow.cs
- NodeLabelEditEvent.cs
- DesigntimeLicenseContextSerializer.cs
- X509UI.cs
- formatter.cs
- LineUtil.cs
- ToolBarButtonClickEvent.cs
- sortedlist.cs
- DataServices.cs
- CodeMethodReturnStatement.cs
- Label.cs
- HostElement.cs
- DocumentPageTextView.cs
- AsynchronousChannelMergeEnumerator.cs
- HtmlLink.cs
- QueryTreeBuilder.cs
- RoutingExtensionElement.cs
- indexingfiltermarshaler.cs
- ManagedIStream.cs
- XmlComment.cs
- TextSelection.cs
- VisualTarget.cs
- CodeAttachEventStatement.cs
- LinkTarget.cs
- FieldBuilder.cs
- SocketException.cs
- GenericTextProperties.cs
- DiscoveryViaBehavior.cs
- CreateUserWizard.cs
- _CookieModule.cs
- DescriptionCreator.cs
- DataGrid.cs
- CompositeCollectionView.cs
- CodeDomSerializerException.cs
- ButtonRenderer.cs
- DelegateCompletionCallbackWrapper.cs
- XDRSchema.cs
- PseudoWebRequest.cs
- AssemblyContextControlItem.cs
- MemberInfoSerializationHolder.cs
- Rotation3DAnimation.cs
- _SecureChannel.cs
- InputLangChangeRequestEvent.cs
- CursorConverter.cs
- clipboard.cs
- MessageAction.cs
- DoubleLinkList.cs
- PointUtil.cs
- LocationUpdates.cs
- FileDetails.cs
- XmlSchemaSimpleContent.cs
- Matrix.cs
- EntitySqlQueryCacheEntry.cs
- CodeEntryPointMethod.cs
- SafeCryptoHandles.cs
- UnsafeNativeMethods.cs
- DecimalFormatter.cs
- FileIOPermission.cs
- DescendantOverDescendantQuery.cs
- ListParagraph.cs
- DateTimeUtil.cs
- SslStream.cs