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
- CodeTryCatchFinallyStatement.cs
- CryptoKeySecurity.cs
- CombinedGeometry.cs
- ProcessHostMapPath.cs
- Identifier.cs
- EntityType.cs
- OutputCacheSettings.cs
- EventHandlersStore.cs
- ScriptControlManager.cs
- StylusPointPropertyUnit.cs
- PasswordTextContainer.cs
- CodeMethodReturnStatement.cs
- ConfigurationStrings.cs
- SafeTimerHandle.cs
- CodeExporter.cs
- ExceptionTrace.cs
- HttpApplicationStateBase.cs
- HttpHandlersSection.cs
- MetafileHeader.cs
- ConnectionDemuxer.cs
- XmlSchemaComplexContent.cs
- DES.cs
- XamlClipboardData.cs
- PackageFilter.cs
- Utils.cs
- TypeGeneratedEventArgs.cs
- FtpWebRequest.cs
- LazyLoadBehavior.cs
- CallbackHandler.cs
- DefaultProxySection.cs
- XXXInfos.cs
- Monitor.cs
- AmbientValueAttribute.cs
- SliderAutomationPeer.cs
- IpcPort.cs
- CompilationUnit.cs
- SpecularMaterial.cs
- PerformanceCounterManager.cs
- XmlTextWriter.cs
- ResponseStream.cs
- DateTime.cs
- XmlSchemaAttributeGroup.cs
- Cursor.cs
- BindingExpressionBase.cs
- tabpagecollectioneditor.cs
- ClrPerspective.cs
- LongPath.cs
- TextCompositionManager.cs
- FontEmbeddingManager.cs
- DefaultValueTypeConverter.cs
- HwndProxyElementProvider.cs
- UInt64Storage.cs
- FileEnumerator.cs
- ValueChangedEventManager.cs
- InputScope.cs
- ResolvePPIDRequest.cs
- CustomErrorCollection.cs
- BitmapEffectvisualstate.cs
- StrokeCollectionConverter.cs
- SessionState.cs
- CaseInsensitiveComparer.cs
- TimeoutValidationAttribute.cs
- Form.cs
- StorageAssociationSetMapping.cs
- URIFormatException.cs
- Attributes.cs
- OnOperation.cs
- WorkerRequest.cs
- RunClient.cs
- CryptoKeySecurity.cs
- Message.cs
- ByteFacetDescriptionElement.cs
- SizeChangedInfo.cs
- WebMethodAttribute.cs
- OleDbConnectionFactory.cs
- SplayTreeNode.cs
- LexicalChunk.cs
- RegexInterpreter.cs
- FileDialogPermission.cs
- CatalogZoneDesigner.cs
- EnumMemberAttribute.cs
- MemoryMappedViewStream.cs
- ThemeableAttribute.cs
- AssemblyAttributes.cs
- Quaternion.cs
- QilCloneVisitor.cs
- DatatypeImplementation.cs
- XmlSchemaObject.cs
- securitycriticaldata.cs
- InvalidComObjectException.cs
- ObjectDataSource.cs
- HWStack.cs
- DesignTimeVisibleAttribute.cs
- SimpleMailWebEventProvider.cs
- SqlPersonalizationProvider.cs
- FileFormatException.cs
- unsafenativemethodsother.cs
- DataControlReference.cs
- GridItemProviderWrapper.cs
- ResourceReferenceExpression.cs