Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / 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. //---------------------------------------------------------------------------- // //// 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
- Vector3DCollectionConverter.cs
- DivideByZeroException.cs
- FontStyle.cs
- Message.cs
- PersistenceProvider.cs
- UnlockCardRequest.cs
- EventLogEntry.cs
- StylusPointProperty.cs
- StandardCommands.cs
- CardSpacePolicyElement.cs
- AssemblyBuilderData.cs
- Msec.cs
- DataContractSerializerOperationGenerator.cs
- CommonProperties.cs
- LinearKeyFrames.cs
- ChannelTracker.cs
- ConstraintManager.cs
- ClientUtils.cs
- PopupRoot.cs
- ReaderWriterLockWrapper.cs
- FamilyTypeface.cs
- IPAddress.cs
- GifBitmapEncoder.cs
- CounterCreationData.cs
- Tool.cs
- DataGridViewLinkCell.cs
- Tuple.cs
- FamilyMapCollection.cs
- EncoderExceptionFallback.cs
- ComboBox.cs
- Site.cs
- PtsHost.cs
- ZipIOCentralDirectoryBlock.cs
- StylusPointDescription.cs
- FillRuleValidation.cs
- TargetControlTypeCache.cs
- OracleBFile.cs
- ValidatorCollection.cs
- ReferenceService.cs
- WebEvents.cs
- ResourceManager.cs
- Normalization.cs
- _CacheStreams.cs
- XmlEncoding.cs
- ConsumerConnectionPointCollection.cs
- ViewPort3D.cs
- AttributeEmitter.cs
- SqlConnectionHelper.cs
- DataBindingCollection.cs
- PerspectiveCamera.cs
- AmbiguousMatchException.cs
- TitleStyle.cs
- BitmapFrameDecode.cs
- XmlSchemaInclude.cs
- FormsAuthenticationUserCollection.cs
- WebPartUserCapability.cs
- PersistenceContext.cs
- ServerValidateEventArgs.cs
- UnmanagedHandle.cs
- PresentationAppDomainManager.cs
- PassportIdentity.cs
- CursorConverter.cs
- SQLInt64.cs
- DataListItem.cs
- ObjectItemAssemblyLoader.cs
- TransformerTypeCollection.cs
- XsltSettings.cs
- SpellerHighlightLayer.cs
- TextViewDesigner.cs
- ModelToObjectValueConverter.cs
- CallId.cs
- Exceptions.cs
- VisualBrush.cs
- SessionIDManager.cs
- DateTimeParse.cs
- WorkflowLayouts.cs
- BitStream.cs
- IISMapPath.cs
- SoapException.cs
- TabPanel.cs
- XmlEnumAttribute.cs
- SchemaAttDef.cs
- OutputChannelBinder.cs
- RowUpdatedEventArgs.cs
- InputLanguageSource.cs
- Win32.cs
- Popup.cs
- ConfigurationValidatorBase.cs
- ReleaseInstanceMode.cs
- ApplicationBuildProvider.cs
- MdiWindowListItemConverter.cs
- Activator.cs
- Panel.cs
- PolicyException.cs
- TextElement.cs
- IIS7UserPrincipal.cs
- EndEvent.cs
- FieldNameLookup.cs
- SynchronizedPool.cs
- formatter.cs