Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- UInt32.cs
- CredentialCache.cs
- BamlRecordWriter.cs
- UnsafeNativeMethods.cs
- XmlNodeWriter.cs
- WebPartVerbCollection.cs
- RoutedEventHandlerInfo.cs
- WMICapabilities.cs
- CompiledQuery.cs
- CodeIdentifiers.cs
- PKCS1MaskGenerationMethod.cs
- WindowsIdentity.cs
- RemotingAttributes.cs
- DbBuffer.cs
- PlatformCulture.cs
- RowVisual.cs
- PopupRootAutomationPeer.cs
- StylusButton.cs
- DbProviderFactories.cs
- DefaultEventAttribute.cs
- DataGridViewBindingCompleteEventArgs.cs
- AuthenticateEventArgs.cs
- Bits.cs
- Automation.cs
- CacheOutputQuery.cs
- NativeMethods.cs
- DomainLiteralReader.cs
- ResXDataNode.cs
- WebReferenceCollection.cs
- FieldToken.cs
- LicenseManager.cs
- WebPartMenuStyle.cs
- AutomationAttributeInfo.cs
- MimeObjectFactory.cs
- DecoderNLS.cs
- ComponentConverter.cs
- UpdateTracker.cs
- PreviewPrintController.cs
- ReadOnlyObservableCollection.cs
- TextServicesManager.cs
- HandleCollector.cs
- _AutoWebProxyScriptHelper.cs
- DbMetaDataColumnNames.cs
- SqlNamer.cs
- OleDbRowUpdatedEvent.cs
- DependencyObjectPropertyDescriptor.cs
- SingleStorage.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ProfilePropertyNameValidator.cs
- CapabilitiesSection.cs
- ColumnWidthChangingEvent.cs
- Site.cs
- PeerObject.cs
- HttpWriter.cs
- Baml2006ReaderFrame.cs
- PerfCounterSection.cs
- ServiceObjectContainer.cs
- LabelLiteral.cs
- CodeDelegateInvokeExpression.cs
- Ray3DHitTestResult.cs
- SmiMetaData.cs
- StructuredTypeEmitter.cs
- DeliveryStrategy.cs
- ControlParameter.cs
- SqlRemoveConstantOrderBy.cs
- HashMembershipCondition.cs
- ResourceManager.cs
- MsmqIntegrationReceiveParameters.cs
- ExtensionFile.cs
- Stream.cs
- ParallelEnumerable.cs
- TypeLibConverter.cs
- WebConfigurationHost.cs
- BufferedStream.cs
- MulticastDelegate.cs
- CharacterMetrics.cs
- DbConnectionFactory.cs
- ConfigXmlAttribute.cs
- DashStyle.cs
- ReflectionHelper.cs
- SymbolEqualComparer.cs
- Queue.cs
- DropDownList.cs
- Empty.cs
- BidOverLoads.cs
- ListControlConvertEventArgs.cs
- CellTreeNodeVisitors.cs
- Literal.cs
- DeviceSpecificChoice.cs
- PageStatePersister.cs
- PtsCache.cs
- ValidatedMobileControlConverter.cs
- tooltip.cs
- FastPropertyAccessor.cs
- ClientCultureInfo.cs
- NativeMethods.cs
- ThreadExceptionEvent.cs
- XmlSchemaSimpleContentExtension.cs
- DesignerDataTableBase.cs
- HttpTransportManager.cs